n,k = map(int,input().split()) *a, = map(int,input().split()) for i in range(1,n): a[i] ^= a[i-1] d = {0} for ai in a: if ai^k in d: print("Yes") exit() d.add(ai) print("No")