N, K = map(int, input().split()) A = list(map(int, input().split())) S = [0] for a in A: S.append(S[-1]^a) X = set() for s in S: if (s^K) in X: print("Yes") exit() X.add(s) print("No")