n, K = map(int, input().split()) a = list(map(int, input().split())) for i in range(n-1): A = a[i] for j in range(i+1, n): A = A ^ a[j] if A == K: print('Yes') exit() print('No')