N, K = map(int, input().split()) A = list(map(int, input().split())) d = dict() X = K for a in A: X ^= a d[X] = True X = 0 for a in A: X ^= a if X in d: print('Yes') break else: print('No')