ll@n,@x,@a[n],b[n]; rep(i,n){ b[i]=min(a[i],a[i]^x); } sortA(n,b,a); rep(i,n-1){ if(a[i]>=(a[i+1]^x)||(a[i]^x)>=a[i+1]){ wt("No"); exit(0); } } wt("Yes");