#include<stdio.h>
#include<string.h>
int main(){
char str[200],str1[200];
int x,i,j,m;
char a[200];
while(gets(str)){
if(strcmp(str,"START")==0){
while(gets(str1)){
if(strcmp(str1,"END")==0)
break;
else{
i=0;
m=strlen(str1);
for(j=0;j<m;j++){
if((str1[j]>=65)&&(str1[j]<=90))
str1[j]=(str1[j]-65+21)%26+65;
a[i]=str1[j];
i++;
}
for(x=0;x<i;x++)
printf("%c",a[x]);
printf("\n");
}
}
}
else{
if(strcmp(str,"ENDOFINPUT")==0)
break;
}
}
return 0;
}
网友评论