print(*[i+"to"+j for i,j in zip([chr(97+i)for i in range(26)],input())if i!=j])