def gcd(x,y): return x if y == 0 else x%y H,W=map(int,input().split()) div=gcd(max(H,W),min(H,W)) H //= div W //= div print('TATE' if H == 4 else 'YOKO')