import math H, W = map(int, input().split()) G = math.gcd(H, W) H//=G W//=G if H==3: print("YOKO") else: print("TATE")