import copy 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]) A2=copy.copy(A) for i in range(len(A)-1,0,-1): A2=A2[:-1] A3=set(A2) if A[i]^k in A3: print('Yes') exit() print('No')