#include <iostream>
#include <string>

void solve() {
    std::string s;
    std::cin >> s;

    for (int i = 0; i < 26; ++i) {
        char c = 'a' + i;
        if (s[i] != c) {
            std::cout << c << "to" << s[i] << "\n";
        }
    }
}

int main() {
    std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);

    solve();

    return 0;
}