#include<stdio.h>
#include<string.h>
int main()
{
    char arr[100]={0};
    scanf("%s", arr);
    int len=strlen(arr);
    for(int i=0; i<len; i++)
    {
        if(arr[i]>='a' && arr[i]<='c')
            arr[i] = '2';
        else if(arr[i]>='d' && arr[i]<='f')
            arr[i] = '3';
        else if(arr[i]>='g' && arr[i]<='i')
            arr[i] = '4';
        else if(arr[i]>='j' && arr[i]<='l')
            arr[i] = '5';
        else if(arr[i]>='m' && arr[i]<='o')
            arr[i] = '6';
        else if(arr[i]>='p' && arr[i]<='s')
            arr[i] = '7';
        else if(arr[i]>='t' && arr[i]<='v')
            arr[i] = '8';
        else if(arr[i]>='w' && arr[i]<='z')
            arr[i] = '9';
        else if(arr[i]>='A' && arr[i]<='Y')
            arr[i] = arr[i] + 33;
        else if(arr[i] == 'Z')
            arr[i] = 'a';
    }
    printf("%s", arr);
    return 0;
}