#include "bits/stdc++.h" using namespace std; #define REP(i,n) for(int (i)=0;(i)<(int)(n);(i)++) #define RREP(i,n) for(int (i)=(int)(n)-1;i>=0;i--) #define REMOVE(Itr,n) (Itr).erase(remove((Itr).begin(),(Itr).end(),n),(Itr).end()) #define MOD 1000000007 #define INF 0x3f3f3f3f #define INFL 0x3f3f3f3f3f3f3f3fLL typedef long long ll; long long gcd(long long a, long long b){ if(b==0)return a; return gcd(b,a%b); } long long lcm(long long a, long long b){ return a*b/gcd(a,b); } int main() { ll H,W; cin >> H >> W; ll div = gcd(H,W); H /= div; W /= div; if(H==4) { cout << "TATE" << endl; } else { cout << "YOKO" << endl; } return 0; }