#include <iostream> #include <string> using namespace std; const string ENDFLAG="ENDOFINPUT"; int main() { ios::sync_with_stdio(false); string todo; while(getline(cin,todo)) { if(todo==ENDFLAG) { break; } getline(cin,todo); for(int i=0;i<todo.size();++i) { if('A'<=todo[i]&&todo[i]<='Z') { todo[i]=(todo[i]-'A'+21)%26+'A'; } } cout<<todo<<endl; getline(cin,todo); } return 0; } // 64 位输出请用 printf("%lld")