#include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll n,x; cin>>n>>x; vector a(n); for(int i = 0;i>a[i]; sort(a.begin(),a.end(),[&](ll i,ll j){ ll ni = i + (i^x); ll nj = j + (j^x); return ni < nj;}); bool fn = true; for(int i = 0;i+1=(a[i+1]^x)) fn = false; if((a[i]^x)>=a[i+1]) fn = false; } if(fn) cout<<"Yes\n"; else cout<<"No\n"; }