#include int main(){ unsigned long long int h, w; scanf("%llud, %llud", &h, &w); if(h > w){ printf("TATE"); }else{ printf("YOKO"); } return 0; }