#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #ifdef __unix__ #include #else #include "bits\stdc++.h" #endif #include #include #include #include #define REP(i,a,b) for(i=a;i 0) { if(n&1) res = res * x; x = x * x; n >>= 1; } return res; } int main() { int i,j,k; int q; int d,x,t; cin >> q; while(cin >> d >> x >> t) { double a=1; for(i=0;i t) goto end; } end: if(a > t) puts("ZETUBOU"); else puts("AC"); } return 0; }