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