#include using namespace std; int main () { int T; cin >> T; while (T--) { int N; cin >> N; int gr = 0; for (int i = 0; i < N; i ++) { int a; cin >> a; int g = 0; if (a == 0) { g = 0; } else if (a < 3) { g = 1; } else { g = a - 2 + (a & 1); } gr ^= g; } cout << (gr ? "Alice" : "Bob") << endl; } }