#include using namespace std; const string msg[] = { "ZETUBOU", "AC" }; #define double long double #define log2 log10 signed main(){ int Q; cin >> Q; for( int kase = 0; kase < Q; ++kase ){ int D, X; long long T; cin >> D >> X >> T; double f = 0; for( int i = 2; i <= D + X - 1; ++i ) f += log2( i ); for( int i = 2; i <= X; ++i ) f -= log2( i ); for( int i = 2; i <= D - 1; ++i ) f -= log2( i ); cout << msg[ f <= log2( T ) ] << endl; } return 0; }