#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; ull tle = pow((ull)2,(ull)40); cin >> q; while(cin >> d >> x >> t) { ull a=1; for(i=0;i tle) goto end; } for(i=1;i t) puts("ZETUBOU"); else puts("AC"); } return 0; }