#include using namespace std; int main(){ int q; long long d,x,t,ans; bool h; cin>>q; while(q--){ h=true; cin>>d>>x>>t; ans=1; for(int i=1;i=t){ h=false; break; } } cout<<(h?"AC":"ZETUBOU")<