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


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