#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; return 0; } int M = 14; if (n > M){ cout << "Yes" << endl; return 0; } for (int i = 1; i < (1<> j & 1) x ^= A[j]; } if (x == 0) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }