from heapq import heapify, heappop N,X=map(int,input().split()) A=list(map(int,input().split())) A.sort() B=[a^X for a in A] if min(A)>min(B): A=sorted(B) B=[a^X for a in A] BB=[(a^X,i) for i,a in enumerate(A)] else: BB=[(b,i) for i,b in enumerate(B)] # print(A) # print(B) heapify(BB) flag=[0]*N now=1 v=A[0] flag[0]=1 aorb=1 res=[0] while len(res)v: v=nex flag[ind]=1 res.append(ind) aorb=0 else: print("No") exit() else: # print("!") while nowv: v=nex flag[now]=1 now+=1 res.append(now-1) aorb=1 else: print("No") exit() # print(res) ans=1 for i in range(N-1): if i%2: if A[res[i]]