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() { for(int q = sc.nextInt(); q > 0; q--) { int d = sc.nextInt(); int x = sc.nextInt(); long t = sc.nextLong(); int n, r; if(d > x) { // x+d-1Cx n = (x+d-1); r = n - x; } else { // x+d-1Cd-1 n = (x+d-1); r = n - (d-1); } // System.out.println("N:" + n + "R:" + r); double tn = 1.; boolean flag = true; for(int i = r; i > 0 && flag; i--) { tn *= n - (r - i); tn /= i; flag = tn <= 10000000000000000d; flag = tn <= t; // System.out.println("TN:" + tn + " " + (n - (r - i))); } System.out.println(q + ":" + (flag ? "AC" : "ZETUBOU")); } } }