#include using namespace std; using ll = long long; int main(){ int n; cin >> n; ll k; cin >> k; vector a(n); for(int i = 0; i < n; i++) cin >> a[i]; set st; ll now = k; for(int i = 0; i < n; i++){ now ^= a[i]; st.insert(now); } ll now2 = 0; for(int i = 0; i < n; i++){ now2 ^= a[i]; if(st.count(now2)){ cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }