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')