Result: Accepted
Time: 3ms
Memory: 1120kB
#include<stdio.h>
#include<string.h>
int main(){
char s[101]; int n,i=0,j;
while(scanf("%s",s)!=EOF){
for(i=0;i<strlen(s);i++){
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 if(s[i]=='a'||s[i]=='b'||s[i]=='c'){
printf("2");
}else if(s[i]=='d'||s[i]=='e'||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{
printf("%c",s[i]);
}
}
printf("\n");
}
}