#include int main(void){ int H, W; scanf("%d %d", &H, &W); if(H * 3 == W * 4) printf("TATE\n"); if(H * 4 == W * 3) printf("YOKO\n"); return 0; }