import sys def str1d():return sys.stdin.read().splitlines() def int2d():return [list(map(int,s.split())) for s in str1d()] inp = int2d() n,k=inp[0] tmp = 0 xorset = set() kxorset = set() for a in inp[1]: tmp ^= a xorset.add(tmp) kxorset.add(tmp^k) if len(xorset & kxorset)>0: print('Yes') else: print('No')