t = 'abcdefghijklmnopqrstuvwxyz' s = input() for i in range(26): if t[i] != s[i]: print('{}to{}'.format(t[i], s[i])) break