#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
char str[101];
int main(){
while(gets(str)!=NULL){
size_t length;
length = strlen(str);
int i;
for(i = 0; i < length; i++){
if(str[i]>='A'&&str[i]<='Z'){
if(str[i]=='Z'){
printf("a");
}else{
printf("%c",str[i]+=33);
}
}else if(str[i]>='a'&&str[i]<='z'){
if(str[i]=='a'||str[i]=='b'||str[i]=='c'){
printf("2");
} else if(str[i]=='d'||str[i]=='e'||str[i]=='f'){
printf("3");
} else if(str[i]=='g'||str[i]=='h'||str[i]=='i'){
printf("4");
}else if(str[i]=='j'||str[i]=='k'||str[i]=='l'){
printf("5");
}else if(str[i]=='m'||str[i]=='n'||str[i]=='o'){
printf("6");
}else if(str[i]=='p'||str[i]=='q'||str[i]=='r'||str[i]=='s'){
printf("7");
}else if(str[i]=='t'||str[i]=='u'||str[i]=='v'){
printf("8");
}else if(str[i]=='w'||str[i]=='x'||str[i]=='y'||str[i]=='z'){
printf("9");
}
} else if (str[i]>='0'&&str[i]<='9'){
printf("%d",str[i]-48);
} else {
printf("%c", str[i]);
}
}
printf("\n");
}
return 0;
}