#include using namespace std; #ifdef _RUTHEN #include "debug.hpp" #else #define show(...) true #endif using ll = long long; #define rep(i, n) for (int i = 0; i < (n); i++) template using V = vector; int main() { ios::sync_with_stdio(false); cin.tie(0); int N, X; cin >> N >> X; V A(N); for (auto &a : A) cin >> a; sort(A.begin(), A.end(), [&](int x, int y) { return (x + (x ^ X)) < (y + (y ^ X)); }); show(A); bool ok = true; rep(i, N - 1) { if (A[i] >= (A[i + 1] ^ X)) ok = false; if ((A[i] ^ X) >= A[i + 1]) ok = false; } cout << (ok ? "Yes" : "No") << '\n'; return 0; }