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