n,k=map(int,input().split()) A=list(map(int,input().split())) s=set() now=0 s.add(now) for i in A: now=now^i tmp=now^k if tmp in s: print("Yes") exit() s.add(now) print("No")