def main(): n, k = map(int, input().split()) a = list(map(int, input().split())) sets = set() sets.add(0) now = 0 for it in a: now = now ^ it if (now ^ k) in sets: print("Yes") return sets.add(now) print("No") main()