n, k = map(int, input().split()) A = list(map(int, input().split())) C = [0]*(n+1) for i in range(1, n+1): C[i] = C[i-1]^A[i-1] S = set() for c in C: if c^k in S: print('Yes') exit() S.add(c) print('No')