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: 4ms
Memory: 1120kB
Author: CT12812891281
In contest: 1281

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



	
	
	
	
	return 0;
}