import java.util.*;
import java.io.*;


public class Problem1 {

	static char[] alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner ( new FileReader ( "DATA1.txt" ) );
		PrintWriter pw = new PrintWriter ( new FileWriter ( "OUT1.txt" ) );
		
		for ( int i = 0; i < 5; i++ ) {
			pw.println(encrypt(sc.nextLine().trim()));
			pw.flush();
		}
		
		pw.close();
		sc.close();
	}
	
	public static String encrypt ( String e ) {
		String r = "";
		for ( int i = 0; i < e.length(); i++ ) {
			if ( Character.isLetter(e.charAt(i)) ) {
				r += alpha[(Arrays.binarySearch(alpha, e.charAt(i)) + 13) % 26];
			} else {
				r += e.charAt(i);
			}
		}
		return r;
	}

}

