n, k = map(int, input().split()) s = {0} now = 0 for a in map(int, input().split()): now ^= a if now ^ k in s: print('Yes') break s.add(now) else: print('No')