N, K = map(int, input().split()) A = list(map(int, input().split())) def exists_xor_subarray(): used = {0} x = 0 for a in A: if (x ^ K) in used: return True x ^= a used.add(x) return False if exists_xor_subarray(): print('Yes') else: print('No')