S = input() for a, b in zip("abcdefghijklmnopqrstuvwxyz", S): if a != b: print(f"{a}to{b}") quit()