#include<stdio.h>
#include<string.h>
int main()
{
int len=0;
char s[100];
while(scanf("%s",s)!=EOF){
len=strlen(s);
for(int i=0;i<len;i++)
{
if(s[i]=='a'||s[i]=='b'||s[i]=='c')
{
printf("2");
}
else if(s[i]=='1')
{
printf("1");
}
else if(s[i]=='e'||s[i]=='d'||s[i]=='f')
{
printf("3");
}
else if(s[i]=='g'||s[i]=='h'||s[i]=='i')
{
printf("4");
}
else if(s[i]=='j'||s[i]=='k'||s[i]=='l')
{
printf("5");
}
else if(s[i]=='m'||s[i]=='n'||s[i]=='o')
{
printf("6");
}
else if(s[i]=='p'||s[i]=='q'||s[i]=='r'||s[i]=='s')
{
printf("7");
}
else if(s[i]=='t'||s[i]=='u'||s[i]=='v')
{
printf("8");
}
else if(s[i]=='w'||s[i]=='x'||s[i]=='y'||s[i]=='z')
{
printf("9");
}
else if(s[i]=='0')
{
printf("0");
}
else if(s[i]=='A')
{
printf("b");
}
else if(s[i]=='B')
{
printf("c");
}
else if(s[i]=='C')
{
printf("d");
}
else if(s[i]=='D')
{
printf("e");
}
else if(s[i]=='E')
{
printf("f");
}
else if(s[i]=='F')
{
printf("g");
}
else if(s[i]=='G')
{
printf("h");
}
else if(s[i]=='H')
{
printf("i");
}
else if(s[i]=='I')
{
printf("j");
}
else if(s[i]=='J')
{
printf("k");
}
else if(s[i]=='K')
{
printf("l");
}
else if(s[i]=='L')
{
printf("m");
}
else if(s[i]=='M')
{
printf("n");
}
else if(s[i]=='N')
{
printf("o");
}
else if(s[i]=='O')
{
printf("p");
}
else if(s[i]=='P')
{
printf("q");
}
else if(s[i]=='Q')
{
printf("r");
}
else if(s[i]=='R')
{
printf("s");
}
else if(s[i]=='S')
{
printf("t");
}
else if(s[i]=='T')
{
printf("u");
}
else if(s[i]=='U')
{
printf("v");
}
else if(s[i]=='V')
{
printf("w");
}
else if(s[i]=='W')
{
printf("x");
}
else if(s[i]=='X')
{
printf("y");
}
else if(s[i]=='Y')
{
printf("z");
}
else if(s[i]=='Z')
{
printf("a");
}
else
printf("%c",s[i]);
}
printf("\n");
}
}