#include using namespace std; int main() { int N; cin >> N; vector A(1 << N); for (int i = 0; i < (1 << N); i++) { cin >> A[i]; } long long g = 0; for (int i = 0; i < (1 << N); i++){ g ^= A[i]; } if (g == 0){ cout << "Yes" << endl; } else { cout << "No" << endl; } }