// macros #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair pii; #define LLINF 1000000000000000000LL #define FOR(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define debug(a) cout << "L(" << __LINE__ << "):" << #a << ":" << a << endl; // problems limits #define MAX_N 100000 // Variables int W, H; // problems input void input() { cin >> H >> W; } // problems main int gcd(int a, int b) { return (b==0) ? a : gcd(b,a%b); } void solve() { int h = H / gcd(H,W); int w = W / gcd(H,W); if (h == 4) { cout << "TATE" << endl; } else { cout << "YOKO" << endl; } } int main() { ios::sync_with_stdio(false); input(); solve(); }