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(" "); int n = Integer.parseInt(sa[0]); int m = Integer.parseInt(sa[1]); // int b = Integer.parseInt(sa[2]); int w = Integer.parseInt(sa[3]); int min = Math.min(n, m); if (min == 1) { pw.println("Bob"); } else if (min == 2 || w < 9) { if (w % 2 == 0) { pw.println("Alice"); } else { pw.println("Bob"); } } else { pw.println("Alice"); } } pw.flush(); br.close(); } }