#include <bits/stdc++.h>
#include <cctype>
using namespace std;
//16:34
int main() {
    string s;
    while(getline(cin,s))
    {
        for(int i=0;i<s.length();i++)
        {
            if(isupper(s[i])) 
            {
                cout<<char((s[i]-'A'+1)%26+'a');
            }
            else if(islower(s[i]))
            {
                if(s[i]<='o')
                {
                    cout<<(s[i]-'a')/3+2;
                }
                else if(s[i]>='p'&&s[i]<='s') cout<<"7";
                else if(s[i]>='t'&&s[i]<='v') cout<<"8";
                else if(s[i]>='w'&&s[i]<='z') cout<<"9";
            }
            else cout<<s[i];
        }
    }
}
// 64 位输出请用 printf("%lld")