#include <stdio.h>
#include <string.h>
#include <stdlib.h>

// 大写变小写向后移一位 x+'a'-'A'-1  Z单独
// 小写变数字
//注意判等 ==

int main(){

char letter[101]={'\0'};

while(scanf("%s",letter)!=EOF){
    char secret[101]={'\0'};
    int i;
    for( i=0;i<strlen(letter);i++){
        if(letter[i]>='A' && letter[i]<'Z')
            secret[i]=letter[i]-'A'+'a'+1;
        else if(letter[i]=='Z')
            secret[i]= 'a';
        else if(letter[i]>='a' && letter[i]<='c')
            secret[i] = '2';
        else if(letter[i]>='d' && letter[i]<='f')
            secret[i] = '3';
        else if(letter[i]>='g' && letter[i]<='i')
            secret[i] = '4';
        else if(letter[i]>='j' && letter[i]<='l')
            secret[i] = '5';
        else if(letter[i]>='m' && letter[i]<='o')
            secret[i] = '6';
        else if(letter[i]>='p' && letter[i]<='s')
            secret[i] = '7';
        else if(letter[i]>='t' && letter[i]<='v')
            secret[i] = '8';
        else if(letter[i]>='w' && letter[i]<='z')
            secret[i] = '9';
        else
            secret[i] = letter[i];
    }
    printf("%s",secret);
}
  
    
return 0;
}