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(); for (int a0 = 0; a0 < g; a0++) { int n = in.nextInt(); List game = new ArrayList<>(); for (int i = 0; i < n; i++) { game.add(new Integer(i + 1)); } int turn = 0; // calculate while (game.size() > 1) { turn++; Integer nextPrime = game.get(1); int lastNumber = game.get(game.size() - 1); while (nextPrime <= lastNumber) { game.remove(nextPrime); nextPrime = nextPrime + nextPrime; } } if(turn == 0){ System.out.println("Bob"); }else{ System.out.println("Alice"); } } } }