import math f=math.factorial for _ in[0]*input():D,X,T=map(int,raw_input().split());print['AC','ZETUBOU'][f(X+D-1)/f(X)/f(D-1)>T]