a='abcdefghijklmnopqrstuvwxyz' b=input() for i,j in zip(a,b): if i!=j: print(f'{i}to{j}') break