#include "bits/stdc++.h" using namespace std; int main(){ int h,w; cin >> h >>w; if(h%4==0&&w%3==0&&h/4==w/3){ cout <<"TATE"<