n, k = map(int, input().split()) a = list(map(int, input().split())) seen = {0} current_xor = 0 found = False for num in a: current_xor ^= num target = current_xor ^ k if target in seen: found = True break seen.add(current_xor) print("Yes" if found else "No")