#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; vector A(n); for (auto &a: A) cin >> a; int x = 0; for (auto a: A) x^= a; if (x){ cout << "No" << endl; } int M = 16; if (n > M){ cout << "Yes" << endl; } for (int i = 1; i < (1<> j & 1) x ^= A[j]; } if (x == 0) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }