from sys import stdin pin=stdin.readline def main(): S=pin().rstrip() T="abcdefghijklmnopqrstuvwxyz" for i in range(26): if S[i]!=T[i]: print(f"{T[i]}to{S[i]}") break return main()