N,K=map(int,input().split()) A=list(map(int,input().split())) S={0} X=0 for a in A: X^=a if X^K in S: exit(print("Yes")) else: S.add(X) print("No")