#include #include #include #include #include using namespace std; int main() { int Q; cin >> Q; while (Q--) { int N; cin >> N; vector A(N); for (int i = 0; i < N; ++i) { cin >> A[i]; } int g = 0; for (int i = 0; i < N; ++i) { g ^= A[i]; } cout << (g != 0 ? "Alice" : "Bob") << endl; } return 0; }