#include<stdio.h> #include<string.h> int main() { char in[100]={0}; while(gets(in)) { int len; int i; len=strlen(in); for(i=0;i<len;i++) { if(in[i]>='A'&&in[i]<='Y') { in[i]=in[i]+33; } else if(in[i]=='Z') { in[i]='a'; } else if(in[i]>='a'&&in[i]<='c') { in[i]='2'; } else if(in[i]>='d'&&in[i]<='f') { in[i]='3'; } else if(in[i]>='g'&&in[i]<='i') { in[i]='4'; } else if(in[i]>='j'&&in[i]<='l') { in[i]='5'; } else if(in[i]>='m'&&in[i]<='o') { in[i]='6'; } else if(in[i]>='p'&&in[i]<='s') { in[i]='7'; } else if(in[i]>='t'&&in[i]<='v') { in[i]='8'; } else if(in[i]>='w'&&in[i]<='z') { in[i]='9'; } } printf("%s",in); } }