n, k = map(int, input().split()) a = list(map(int, input().split())) a2 = [a[0]] for i in range(1, n): a2.append(a2[-1] ^ a[i]) s = set(a2) for i in a2: if k ^ i in s: print(i) print("Yes") break else: print("No")