import java.io.*; import java.util.*; import java.math.*; class Main18 { public static String solve (String code) { String ret = ""; char[] alp = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}; for (int i = 0; i < alp.length / 2; i++) { char tmp = alp[i]; alp[i] = alp[alp.length - i - 1]; alp[alp.length - i - 1] = tmp; } for (int i = 0; i < code.length(); i++) { char c = code.charAt(i); for (int j = 0; j < alp.length; j++) { if (c != alp[j]) continue; ret += "" + alp[(i + j + 1) % alp.length]; break; } } return ret; } public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); System.out.println(solve(line)); } }