#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-9 #define ZEROP(x) (abs(x)> Q; rep(i,Q){ cin >> D >> X >> T; if(T == 0){ cout << "ZETUBOU" << endl; continue; } 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){ a -= log((double)bb); bb++; } if(LT(b,a)) cout << "ZETUBOU" << endl; else cout << "AC" << endl; } return 0; }