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