#include using namespace std; int main() { int N,K; cin >> N >> K; vectorA(N),sum(N+1); mapmp; for(int i = 0; i < N; i++) { cin >> A[i]; sum[i+1] = sum[i]^A[i]; mp[sum[i+1]]++; } mp[0]++; for(int i = 0; i <= N; i++) { if(mp[sum[i]^K] >= 1) { cout << "Yes" << endl; return 0; } mp[i]--; } cout << "No" << endl; }