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