using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Collections; class Solution { static void Main(String[] args) { int g = Convert.ToInt32(Console.ReadLine()); for(int a0 = 0; a0 < g; a0++){ int n = Convert.ToInt32(Console.ReadLine()); var nums = Enumerable.Range(2,n); var intPrimes = new List(); var primes = new BitArray(n + 1); primes.SetAll(true); for (int z = 2; z < primes.Length; z++){ if (primes[z] == true){ intPrimes.Add(z); var multiplier = 2; while (z * multiplier <= n){ primes[z * multiplier] = false; multiplier++; } } } var answer = intPrimes.Count; if (answer == 0 || answer % 2 == 0){ Console.WriteLine("Bob"); } else{ Console.WriteLine("Alice"); } } } }