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