S = input() A = "abcdefghijklmnopqrstuvwxyz" for i in range(len(S)): if S[i]!=A[i]: print(f"{A[i]}to{S[i]}") exit()