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