#include using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(0); int n, k, v, tot = 0; cin >> n >> k; set S = {0}; for(int i = 0; i < n; i++){ cin >> v; tot ^= v; if(S.count(tot ^ k)){ cout << "Yes\n"; return 0; } S.insert(tot); } cout << "No\n"; }