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