#include using namespace std; struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}init; typedef long long LL; int main(){ LL x,y; cin>>x>>y; if(x%4==0&&(x/4)*3==y)cout<<"TATE"<