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