#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while (T--) { int N; cin >> N; int state = 0; for (int i = 0; i < N; ++i) { long long A; cin >> A; if (state == 0) { if (A == 1) { state = 2; } else if (A % 2 == 1) { state = 1; } } else if (state == 1) { if (A % 2 == 1) { state = 0; } } else { state = 2; } } cout << (state == 0 ? "Bob" : "Alice") << '\n'; } return 0; }