#include #include #include #include #include int gcd(int x, int y) { if (y == 0) return x; return gcd(y, x % y); } int main() { int h, w; scanf("%d %d", &h, &w); int g = gcd(h, w); h /= g; w /= g; if (h == 3 && w == 4) puts("YOKO"); else puts("TATE"); return (0); }