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