h, w = map(int, input().split()) if h * 3 == w * 4: ans = "TATE" else: ans = "YOKO" print(ans)