s = list(input().split()) str_ref = "abcdefghijklmnopqrstuvwxyz" for si in range(len(s)): if s[si] != str[si]: a = [str[si] + "to" + s[si]] print("\n".join(map(str, a)))