S = list("abcdefghijklmnopqrstuvwxyz") T = list(input()) for s,t in zip(S,T): if s != t: print(s + "to" + t) break