#include <iostream>
using namespace std;
int main()
{//暴力破解的笨方法,逐一列举,仅供参考,各位大佬轻喷
    string s;
    cin>>s;
    int length = s.size();
    for(int i=0;i<length;i++)
    {
        if(s[i]>='a'&&s[i]<='c')
        {
            cout<<'2';
        }
        else if(s[i]>='d'&& s[i]<='f')
        {
            cout<<'3';
        }
        else if(s[i]>='g'&& s[i]<='i')
        {
            cout<<'4';
        }
        else if(s[i]>='j'&& s[i]<='l')
        {
            cout<<'5';
        }
        else if(s[i]>='m'&&s[i]<='o')
        {
            cout<<'6';
        }
        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 if(s[i]>='0'&&s[i]<='9')
        {
            cout<<s[i];
        }
        else if(s[i]>=65&&s[i]<=89)
        {
            cout<<char(s[i]+33);
        }
        else if(s[i]==90)
        {
            cout<<'a';
        }

    }
}