import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.PrintWriter; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine()); PrintWriter pw = new PrintWriter(System.out); for (int z = 0; z < t; z++) { String[] sa = br.readLine().split(" "); long n = Long.parseLong(sa[0]); String s = sa[1]; boolean a = true; if (n == 1) { if (s.equals("Even")) a = false; } else if (n == 2) { if (s.equals("Even")) a = false; } else if (Long.bitCount(n) == 1) { if (s.equals("Odd")) a = false; } else if (n % 2 == 0) { a = false; } if (a) { pw.println("Alice"); } else { pw.println("Bob"); } } pw.flush(); br.close(); } }