t, y = input().split() if t > y: print("TATE") else: print("YOKO")