#include <iostream>
#include<fstream>


using namespace std;

int main(){
 
 	//char s[5][250];
 	string s[5];
 	string temp;
// 	temp = ('a'+3) ;
 	ifstream fin("data1.txt");
	ofstream fout("out1.txt");
	
	for (int i=0; i < 5; ++i){
//		fin >> s[i];
		getline(fin, s[i]);
		
		
		for (int j=0; j< s[i].size(); j++){
			if (s[i].at(j) >= 65 && s[i].at(j) <=90) {
				if (s[i].at(j) <= 77){
					temp = (s[i].at(j)+13);
					s[i].replace(j,1,temp);
					//s[i][j] += 12;
				}
				else {
					
					temp = (s[i].at(j)-13);
					//s[i].at(j) -= 14;
					s[i].replace(j,1,temp);
				}
			//fout << s[i][j] << endl;
			}
		}
		
		
		fout << s[i] << endl;
	
	}
	//fout << temp << endl;
	
}

