s = list(input()) var =list('abcdefghijklmnopqrstuvwxyz') j = 0 for i in s: if var[j] != i: print(var[j]+'to'+i) j += 1