#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while (T--) { int N; cin >> N; vector A(N); for (auto& a : A) cin >> a; sort(A.begin(), A.end()); long long S = 0; bool win = false; for (long long a : A) { if (a == 1 && S % 2 == 0) { win = true; } S += a; } if (S % 2 == 1) { win = true; } cout << (win ? "Alice" : "Bob") << '\n'; } return 0; }