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: CT12812971281
In contest: 1281

#include<stdio.h>
#define length 100
int main() {
	char mima[length+1];
	while(scanf("%s",mima)!=EOF) {
		int i;
		for(i=0; i<100; ++i) {
			if(mima[i]==0)
				break;
			else if(mima[i]==97||mima[i]==98||mima[i]==99)
				mima[i]='2';
			else if(mima[i]==100||mima[i]==101||mima[i]==102)
				mima[i]='3';
			else if(mima[i]==103||mima[i]==104||mima[i]==105)
				mima[i]='4';
			else if(mima[i]==106||mima[i]==107||mima[i]==108)
				mima[i]='5';
			else if(mima[i]==109||mima[i]==110||mima[i]==111)
				mima[i]='6';
			else if(mima[i]==112||mima[i]==113||mima[i]==114||mima[i]==115)
				mima[i]='7';
			else if(mima[i]==116||mima[i]==117||mima[i]==118)
				mima[i]='8';
			else if(mima[i]==119||mima[i]==120||mima[i]==121||mima[i]==122)
				mima[i]='9';
			else if(mima[i]=='1')
				mima[i]='1';
			else if(mima[i]=='0')
				mima[i]='0';
			else if(mima[i]=='2')
				mima[i]='2';
			else if(mima[i]=='3')
				mima[i]='3';
			else if(mima[i]=='4')
				mima[i]='4';
			else if(mima[i]=='5')
				mima[i]='5';
			else if(mima[i]=='6')
				mima[i]='6';
			else if(mima[i]=='7')
				mima[i]='7';
			else if(mima[i]=='8')
				mima[i]='8';
			else if(mima[i]=='9')
				mima[i]='9';
			else if(mima[i]==90)
				mima[i]=97;
			else if(mima[i]==65||mima[i]==66||mima[i]==67||mima[i]==68||mima[i]==69||mima[i]==70||mima[i]==71||mima[i]==72||mima[i]==73||mima[i]==74||mima[i]==75||mima[i]==76||mima[i]==77||mima[i]==78||mima[i]==79||mima[i]==80||mima[i]==81||mima[i]==82||mima[i]==83||mima[i]==84||mima[i]==85||mima[i]==86||mima[i]==87||mima[i]==88||mima[i]==89)
				mima[i]=mima[i]+33;
		}
		puts(mima);
	}
	return 0;
}