#include using namespace std; int main() { int H, W; cin >> H >> W; if (H*3==W*4) printf("TATE\n"); else printf("YOKO\n"); return 0; }