#include<stdio.h>
#include<string.h>
int main(){
int i;
char a[10000];
char b[30] = "bcdefghijklmnopqrstuvwxyza";
char c[30] = "22233344455566677778889999";
while(gets(a)!=NULL){
for(i=0;i<strlen(a);i++){
if(65<=a[i]&&a[i]<=90){
a[i]=b[a[i]-65];
continue;
}
if(a[i]>90)
a[i]=c[a[i]-97];
}
for(i=0;i<strlen(a);i++)
printf("%c",a[i]);
printf("\n");
}
}