N, K = map(int, input().split()) A = list(map(int,input().split())) L = [0] for i in range(N): L.append(L[-1]^A[i]) S = set(L) for i in L: if K^i in S: print('Yes') break else: print('No')