#include int main (void){ int h,w; double k,l; scanf("%d%d",&h,&w); k = (double)h*(3/4); l = (double)w*(3/4); if((double)h/(double)w==4/3){ printf("TATE"); } else { printf("YOKO"); } return 0; }