Start: Jul, 05, 2019 08:40:00
2019年度暑期短学期达标测试
End: Jul, 05, 2019 11:40:00
Time elapsed:
Time remaining:

Problem_ID: D
Result: Accepted
Time: 3ms
Memory: 1120kB
Author: CT12811961281
In contest: 1281

#include<stdio.h>
#include<math.h>
#include<string.h>
int main(){
	char ch[101];
	int n;
	while(scanf("%s",ch)!=EOF)
	{
		n=0;
	while(ch[n]!='\0'){
		if(ch[n]>=97){
			if(ch[n]=='a'||ch[n]=='b'||ch[n]=='c')
				ch[n]='2';
			else if(ch[n]=='d'||ch[n]=='e'||ch[n]=='f')
				ch[n]='3';
			else if(ch[n]=='g'||ch[n]=='h'||ch[n]=='i')
				ch[n]='4';
			else if(ch[n]=='j'||ch[n]=='k'||ch[n]=='l')
				ch[n]='5';
			else if(ch[n]=='m'||ch[n]=='n'||ch[n]=='o')
				ch[n]='6';
			else if(ch[n]=='p'||ch[n]=='q'||ch[n]=='r'||ch[n]=='s')
				ch[n]='7';
			else if(ch[n]=='t'||ch[n]=='u'||ch[n]=='v')
				ch[n]='8';
			else
				ch[n]='9';
		}
		else if(ch[n]>=65){
			if(ch[n]!='Z')
			  ch[n]=ch[n]+33;
			else
			 ch[n]='a';
			
		}
		
		n++;
	}
	puts(ch);
	
	
}
	return 0;
}