s="abcdefghijklmnopqrstuvwxyz" S=input() x=[a+"to"+b for a,b in zip(s,S) if a!=b] print(*x)