#include<bits/stdc++.h>
using namespace std;
char decode(char c);

int main(){
    string str;
    while(cin>>str){
        for(int i=0;i<str.size();++i){
            if(str[i]>='a'&&str[i]<='z'){
                str[i] = decode(str[i]);
            }else if(str[i]>='A'&&str[i]<'Z'){
                str[i] = str[i] + 'a' - 'A' +1;
            }else if(str[i]=='Z'){
                str[i] = 'a';
            }
        }
        cout<<str<<endl;
    }
    return 0;
}

char decode(char c){
    if(c>='a'&&c<='o'){
        int n = int(c-'a')+1;
        return ceil(n/(3.0))+'1';
    }else if(c>='p'&&c<='s'){
        return '7';
    }else if(c>='t'&&c<='v')
        return '8';
    else if(c>='w'&&c<='z')
        return '9';
    return c;
}