#include using Int = int64_t; void Solve() { Int n; std::cin >> n; Int g = 0; while (n--) { Int a; std::cin >> a; if (a < 4) { g ^= (a + 1) / 2; } else { g ^= 2 * (a / 3 * 2 - (2 - a % 3)); } } std::cout << (g ? "Alice\n" : "Bob\n"); } int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); Int t; std::cin >> t; while (t--) { Solve(); } }