n,k = map(int,input().split())
A = list(map(int,input().split()))
A = [0]
for i in range(n):
    A.append(A[-1]^A[i])
A_set = set(A)
for i in range(len(A)):
    if A[i] ^ k in A_set:
        print("Yes")
        exit()
print("No")