def popcount(n): c=(n&0x5555555555555555)+((n>>1)&0x5555555555555555) c=(c&0x3333333333333333)+((c>>2)&0x3333333333333333) c=(c&0x0f0f0f0f0f0f0f0f)+((c>>4)&0x0f0f0f0f0f0f0f0f) c=(c&0x00ff00ff00ff00ff)+((c>>8)&0x00ff00ff00ff00ff) c=(c&0x0000ffff0000ffff)+((c>>16)&0x0000ffff0000ffff) c=(c&0x00000000ffffffff)+((c>>32)&0x00000000ffffffff) return c T = int(input()) Alice = 'Alice' Bob = 'Bob' for _ in range(T): N = int(input()) A = list(map(int,input().split())) g = 0 for a in A: n = (a - 1) // 2 g ^= (1 << n) if g > 0: print(Alice) else: print(Bob)