n, k = map(int, input().split())
a = list(map(int, input().split()))
prefix_set = {0}
current_xor = 0
found = False

for num in a:
    current_xor ^= num
    target = current_xor ^ k
    if target in prefix_set:
        found = True
        break
    prefix_set.add(current_xor)

print("Yes" if found else "No")