#include #define rep(i, n) for (int i = 0; i < (n); ++i) using std::cin; using std::cout; using std::set; using std::vector; int main() { std::ios::sync_with_stdio(false); cin.tie(nullptr); int n, k; cin >> n >> k; vector a(n); rep(i, n) cin >> a[i]; vector s(n+1); rep(i, n) s[i+1] = s[i] ^ a[i]; set st; rep(i, n+1) { if (st.count(s[i])) { puts("Yes"); return 0; } st.insert(s[i]^k); } puts("No"); return 0; }