using System; using System.Collections.Generic; using System.IO; using System.Linq; 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()); // primes control var numberOfPrimes = 0; for(int i = 2; i <= n; i++) { bool isPrime = true; for (int j = 2; j < i; j++) { if (i % j == 0) { isPrime = false; } } if (isPrime) numberOfPrimes++; } string ouputText = numberOfPrimes % 2 == 0 ? "Bob" : "Alice"; Console.WriteLine(ouputText); } } }