S = input() for x, y in zip("abcdefghijklmnopqrstuvwxyz", S): if x != y: print(x + "to" + y) break