n,k = map(int,input().split())
dic = {0:1}
now = 0
A = list(map(int,input().split()))
for a in A:
    now ^= a
    if now^k in dic:
        print("Yes")
        exit()
    dic[now] = 1
print("No")