#include <cstdio>
#include <iostream>
#include <cstring>
#include <string>
using namespace std;
void chardecoden(char& x){
    if(x>='A'&&x<='Z'){
        x=(x-'A'-5+26)%26+'A';
    }
}
string decoden(string c){
    for(int i=0;i<c.length();i++){
        chardecoden(c[i]);
    }
    return c;
}
int main() {
    string x;
    while(cin>>x && x=="START"){
        getchar();
        string code;
        getline(cin, code);
        cout<<decoden(code)<<endl;
        string e;
        cin>>e;
        if(e=="ENDOFINPUT") break;
    }
}