#include #include #include using namespace std; using ll = long long; ll gcd(ll a,ll b){ if(b) return gcd(b,a%b); return a; } int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll h,w; cin>>h>>w; ll g = gcd(h,w); h /= g; w /= g; if(h==4) cout<<"TATE\n"; else cout<<"YOKO\n"; }