#include<iostream>
#include<fstream>
using namespace std;
//char s[102][205];
int main(){
//freopen("1.txt","r",stdin);
//ifstream cin("1.txt");
string s;
while(cin>>s){
if(s=="ENDOFINPUT")
break;
char huanh;
cin>>huanh;
string str;
getline(cin,str);
str=huanh+str;
for(int i=0;i<str.length();++i){
if(str[i]>='A'&&str[i]<='Z'){
str[i]=char((str[i]-'A'-5+26)%26+'A');
}
}
cout<<str<<endl;
string ends;
cin>>ends;
}
return 0;
}
poj3749
最新推荐文章于 2017-11-21 17:18:19 发布