#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it) #define ALLOF(c) (c).begin(), (c).end() typedef long long ll; #define EPS 1.0e-10 #define ZEROP(x) (abs(x)> Q; rep(i,Q){ cin >> D >> X >> T; double a = 0, b = log((double)T); ll aa = X+1; rep(j,D-1){ a += log((double)aa); aa++; } ll bb = 2; rep(j,D-2){ b += log((double)bb); bb++; } if(LT(b,a)) cout << "ZETUBOU" << endl; else cout << "AC" << endl; } return 0; }