#include <iostream>
#include <ostream>
using namespace std;

string encry(string str){
    string ming = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
    string mwen = "bcdefghijklmnopqrstuvwxyza222333444555666777788899990123456789";
    for (int i = 0; i < str.size(); ++i) {
        str[i] = mwen[ming.find(str[i])];
    }
    return str;
}

int main() {
    string str;
    while (cin >> str) {
        str = encry(str);
        cout<<str<<endl;
    }
}