#include using namespace std; int main() { int N; cin >> N; vector A(N); for (int &x : A) cin >> x; int xorsum = 0; for (int &x : A) xorsum ^= x; if (xorsum) { cout << "No" << endl; return 0; } bool ans = false; for (int s = 1; s < (1 << min(N, 23)); s++) { int bitcnt = 0; int sxor = 0; for (int bit = 0; bit < min(N, 23); bit++) { if (s & (1 << bit)) { bitcnt += 1; sxor ^= A[bit]; } } if (sxor == 0 && 1 <= bitcnt && bitcnt < N) ans = true; } if (ans) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }