#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
#include <cstring>
using namespace std;
int main()
{
    freopen("DATA1.txt", "r", stdin);
    freopen("OUT1.txt", "w", stdout);
    string s;
    for (int ii = 0; ii < 5; ii++)
    {
        getline(cin, s);
        string t = "";
        for (int i = 0; i < s.length(); i++){
         if (s[i] >= 'A' && s[i] <= 'Z')
            t += (char)(((int)s[i]-(int)'A' + 13)%26 + (int)'A');
        else t += s[i];
        }
        cout << t << endl;
    }
    return 0;
}

