N, K = map(int, input().split()) A = list(map(int, input().split())) C = [0] * (N + 1) for i in range(N): C[i + 1] = C[i] ^ A[i] app = set() for i in range(N + 1): app.add(C[i]) if K ^ C[i] in app: print("Yes") exit() print("No")