#include <iostream>
using namespace std;

int main() {
    string encrp, res ;
    while (getline(cin, encrp)) {
        if(encrp == "START" || encrp == "END"||encrp == "ENDOFINPUT")
        {
            continue ; 
        }
        for (int i = 0 ; i < encrp.size() ; ++ i) {
            if (encrp[i] <= 'Z' &&  encrp[i] >= 'A') {
                if (encrp[i] != 'Z')
                    res.push_back((encrp[i] - 5 -'A'+26 ) % 26 +'A') ;//-'A
//  + 'A' 相当于没有加                
                else 
                    res.push_back('U') ;
            }
            else {
                res.push_back(encrp[i]) ; 
            }
        }
        cout<<res <<endl ; 
    }
}
// 64 位输出请用 printf("%lld")