#include #include #include #include #include #include #include #include using namespace std; long long fac(long long n){ long long ans = 1; while(n > 0){ ans *= n; n--; } return ans; } long long Comb(long long n, long long k){ long long ans = 1; long long kk = k; while(kk > 0){ ans *= n; ans /= kk; kk--; n--; } return ans; } int main(){ int N; cin >> N; for(int i=0; i> D >> X >> T; if(Comb(X+D-1, X) > T) cout << "ZETUBOU" << endl; else cout << "AC" << endl; } return 0; }