n,k=map(int,input().split()) A=list(map(int,input().split())) Acc=[0]*(n+1) for i in range(n): Acc[i+1]=Acc[i]^A[i] for i in range(n-1): for j in range(i+1,n): if Acc[j+1]^Acc[i] == k : print("Yes") exit() print("No")