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