//package Awesome; import java.awt.Point; import java.io.*; import java.io.ObjectInputStream.GetField; import java.nio.file.Watchable; import java.sql.Array; import java.util.*; import java.util.jar.Attributes.Name; import java.util.logging.Level; import javax.print.attribute.HashAttributeSet; import javax.swing.text.MaskFormatter; class TestClass { static long mod ; static int[] A; static int[] Fims; static int[] AD; static int[][] dp; static int ans=0; public static class Q{ int index; long pos; public Q(int index, long pos) { this.index = index; this.pos = pos; } } public static int go_gone(int curr , int sum , int k, int[] F , int c){ //System.out.println(curr+" "+c+" "+sum+" "+k+" "+F[curr]); if(dp[curr][c]!=-1) return dp[curr][c]; if(c==0 && curr!=0) return Integer.MAX_VALUE/2; if(curr==0){ if(c==0) return 0; return Integer.MAX_VALUE/2; } int ans =Integer.MAX_VALUE/2; // System.out.println(curr+" "+c+" "+sum+" "+F[curr]); if(F[curr]+sum>=k) ans = k-F[curr]+go_gone(curr-1, sum-(k-F[curr]), k, F,c-1); ans = Math.min(ans,go_gone(curr-1, sum+F[curr], k, F, c)); return dp[curr][c]=ans; } public static void main(String args[] ) throws java.lang.Exception { InputStream inputStream = System.in; InputReader in = new InputReader(inputStream); //BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); //BufferedReader in = new BufferedReader(new FileReader("C:\\Users\\Sompathak\\Desktop\\yes.txt")); //Scanner in = new Scanner(new FileReader("C:\\Users\\Sompathak\\Desktop\\yes.txt")); // PrintWriter pw = new PrintWriter(new FileWriter("C:\\Users\\sompatha\\Desktop\\output.txt")); //InputStream inputStream = System.in; //InputReader in = new InputReader(inputStream); //Scanner in = new Scanner(new InputStreamReader(System.in)); //Scanner in = new Scanner(new FileReader("C:\\Users\\sompatha\\Desktop\\yes.txt")); //we can we will ??? !!!!!! SOM RISES //long startTime = System.currentTimeMillis(); //long startTime = System.currentTimeMillis(); //float endTime = System.currentTimeMillis(); //float totalTime = (endTime - startTime)/(float)1000; //System.out.println(totalTime+" sec....."); /*pw.println(10); for(int i=1;i<=10;i++){ Random R = new Random(); int x = 1+R.nextInt(4); int y = 1+R.nextInt(3); pw.println(x*y+" "+x); for(int j=1;j<=x*y;j++) pw.print((R.nextInt(7)+1)+" "); pw.println(); } pw.flush();*/ mod=1000000007; int t = in.nextInt(); int max = 100000; boolean[] V = new boolean[max+1]; Arrays.fill(V,true); int[] A = new int[max+1]; for(int i=2;i<=max;i++){ if(!V[i]) continue; A[i]=1; for(int j=2;j*i<=max;j++) V[i*j]=false; } for(int i=2;i<=max;i++) A[i]+=A[i-1]; while(t>0){ t--; int n = in.nextInt(); System.out.println(A[n]%2==0 ?"Bob":"Alice"); } }public static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private SpaceCharFilter filter; public InputReader(InputStream stream) { this.stream = stream; } public int read() { if (numChars == -1) throw new InputMismatchException(); if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) return -1; } return buf[curChar++]; } public int nextInt() { int c = read(); while (isSpaceChar(c)) c = read(); int sgn = 1; if (c == '-') { sgn = -1; c = read(); } int res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public String readString() { int c = read(); while (isSpaceChar(c)) c = read(); StringBuilder res = new StringBuilder(); do { res.appendCodePoint(c); c = read(); } while (!isSpaceChar(c)); return res.toString(); } public double readDouble() { int c = read(); while (isSpaceChar(c)) c = read(); int sgn = 1; if (c == '-') { sgn = -1; c = read(); } double res = 0; while (!isSpaceChar(c) && c != '.') { if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt()); if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = read(); } if (c == '.') { c = read(); double m = 1; while (!isSpaceChar(c)) { if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt()); if (c < '0' || c > '9') throw new InputMismatchException(); m /= 10; res += (c - '0') * m; c = read(); } } return res * sgn; } public long readLong() { int c = read(); while (isSpaceChar(c)) c = read(); int sgn = 1; if (c == '-') { sgn = -1; c = read(); } long res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public boolean isSpaceChar(int c) { if (filter != null) return filter.isSpaceChar(c); return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public String next() { return readString(); } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } }