#include int main(void){ int H,W; scanf("%d%d",&H,&W); if((double)H/W == 0.75){ printf("YOKO\n"); }else if((double)W/H == 0.75){ printf("TATE\n"); } return 0; }