import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int g = in.nextInt(); boolean[] gagnant = new boolean[g]; for(int a0 = 0; a0 < g; a0++){ int n = in.nextInt(); int[] element = new int[n]; for (int i = 0; i < n; i++) element[i] = i + 1; gagnant[a0] = partie(element); } for (int elt = 0; elt < gagnant.length; elt++){ if (gagnant[elt]){ System.out.println("Bob"); } else{ System.out.println("Alice"); } } } public static boolean partie(int[] element){ boolean joueur = true; for (int i = 1; i < element.length; i++ ){ if (element[i] != 0){ int nbReference = element[i]; for (int j = i; j < element.length; j++){ if (element[i] % nbReference == 0) element[i] = 0; } joueur = false; } } return joueur; } }