n, k = map(int, input().split()) a = list(map(int, input().split())) b = set() x = 0 for i in a: x ^= i if x in b: print("Yes") break b.add(x ^ k) else: print("No")