import java.util.*; import java.io.*; import java.awt.geom.*; import java.math.*; public class No0250 { static final Scanner in = new Scanner(System.in); static final PrintWriter out = new PrintWriter(System.out,false); static void solve() { BigInteger[] fact = createFactorialArray(0,3000); int q = in.nextInt(); while (q-- > 0) { int d = in.nextInt(); int x = in.nextInt(); int t = in.nextInt(); out.println(fact[d+x-1].divide(fact[d-1]).divide(fact[x]).compareTo(BigInteger.valueOf(t)) <= 0 ? "AC" : "ZETUBOU"); } } public static BigInteger[] createFactorialArray(int offset, int n) { if (offset >= n || n <= 0) return null; BigInteger[] ret = new BigInteger[n]; ret[0] = ret[1] = BigInteger.ONE; for (int i=2; i