def main(): n, k = map(int, input().split()) arr = list(map(int, input().split())) s = set() s.add(0) now = 0 for a in arr: now = now ^ a tmp = now ^ k if tmp in s: exit(print("Yes")) s.add(now) print("No") if __name__ == "__main__": main()