flag=False N,K=map(int,input().split()) A=list(map(int,input().split())) B=[0] for j in range(N): B.append(B[j]^A[j]) for i in range(j): if B[i]^B[j]==K: flag=True print("Yes" if flag else "No" )