#include int main () { int t = 0; int n = 0; int a = 0; int res = 0; res = scanf("%d", &t); while (t > 0) { int acc = 0; int cnt = 0; int alt = 0; res = scanf("%d", &n); while (n > 0) { res = scanf("%d", &a); if (a > 2) { acc ^= a-2; cnt++; } else { alt ^= 1; } n--; } if (acc > 0 || (cnt <= 0 && alt > 0)) { printf("Alice\n"); } else { printf("Bob\n"); } t--; } return 0; }