#include using namespace std; int main(){ long long h,w; cin >> h >> w; if(h*3==w*4) cout << "TATE" << endl; else cout << "YOKO" << endl; }