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