#include using namespace std; vector A; bool rec(int i = 0, int cnt = 0, int sxor = 0) { if (i == int(A.size())) { if (sxor == 0 && 1 <= cnt && cnt < int(A.size())) return true; else return false; } else { if (rec(i + 1, cnt, sxor)) return true; if (rec(i + 1, cnt + 1, sxor ^ A[i])) return true; return false; } } int main() { int N; cin >> N; A.resize(N); for (int &x : A) cin >> x; int xorsum = 0; for (int &x : A) xorsum ^= x; if (xorsum) { cout << "No" << endl; return 0; } if (rec()) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }