Result: Accepted
Time: 3ms
Memory: 1120kB
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<ctype.h>
int main(){
int n,i,a,b;
char sz[200];
while(scanf("%s",sz)!=EOF){
n=strlen(sz);
for(i=0;i<n;++i){
a=(int)sz[i];
if(a>=97&&a<=122){
if(a>=97&&a<=99)
b=50;
if(a>99&&a<=102)
b=51;
if(a>102&&a<=105)
b=52;
if(a>105&&a<=108)
b=53;
if(a>108&&a<=111)
b=54;
if(a>111&&a<=115)
b=55;
if(a>115&&a<=118)
b=56;
if(a>118&&a<=122)
b=57;
sz[i]=b;
}
if(a>=65&&a<=90){
if(a>=65&&a<=89){
b=a+1+32;
}
if(a==90){
b=a+7;
}
sz[i]=b;
}
}
puts(sz);
}
return 0;
}