n,k=map(int,input().split()) a=list(map(int,input().split())) s=set() now=0 for i in range(n): now=now^a[i] s.add(now) for i in s: if i^k in s: print('Yes') exit() print('No')