#include<bits/stdc++.h>

using namespace std;

char convert(char c){
    if(c>='a'&&c<='c'){
        return '2';
    }else if(c>='d'&&c<='f'){
        return '3';
    }else if(c>='w'&&c<='z'){
        return '9';
    }else if(c>='g'&&c<='i'){
        return '4';
    }else if(c>='j'&&c<='l'){
        return '5';
    }else if(c>='m'&&c<='o'){
        return '6';
    }else if(c>='p'&&c<='s'){
        return '7';
    }else if(c>='t'&&c<='v'){
        return '8';
    }
}


int main(){

    string s;

    while(cin>>s){
        string res= "";
        for(int i = 0; i< s.size(); i++){
            if(s[i]>='0'&&s[i]<='9'){
                res+=s[i];
            }else if(s[i]>='A'&&s[i]<='Z'){
                char new_char = ' ';
                if(s[i]=='Z'){
                     new_char = 'a';
                 }else{
                     new_char = tolower(s[i]) +1;
                }


                res+=new_char;

            }else if(s[i]>='a'&&s[i]<='z'){
                char converted = convert(s[i]);
                res+=converted;
            }else{
                res+=s[i];
            }
        }

        cout<<res<<endl;
    }


    return 0;
}