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