import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static String winner(int n) { String res=null; int count2=0; for(int i=1;i<=n;i++) { int count1=0; for(int j=i;j>=1;j--) { if(i%j==0) count1++; } if(count1==2) count2++; } if(count2%2==1) res="Alice"; if(count2%2==0) res="Bob"; return res; } public static void main(String[] args) { Scanner in = new Scanner(System.in); int g = in.nextInt(); for(int i = 0; i < g; i++){ int n = in.nextInt(); System.out.println(winner(n)); // your code goes here } } }