import java.util.Scanner; public class Main { private Scanner sc = new Scanner(System.in); public static void main(String[] args) { Main m = new Main(); m.main(); } public void main() { long maxnum = (long)10e15; for(int q = sc.nextInt(); q > 0; q--) { int d = sc.nextInt(); int x = sc.nextInt(); long t = sc.nextLong(); if(d == 1) { System.out.println("AC"); continue; } int n = (x+d-1); int r = n/2 < x ? (n - x) : x; // System.out.println("N:" + n + "R:" + r); double tn = 1; boolean flag = true; for(int i = 1; i <= r && flag; i++) { tn *= (n - i + 1); tn /= (r - i + 1); flag = (tn <= maxnum); // System.out.println("TN:" + tn); // System.out.println("N:" + (n - i + 1) + "R:" + (r - i + 1)); } flag = (tn <= t); System.out.println((flag ? "AC" : "ZETUBOU")); } } }