import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String S = reader.readLine(); StringBuilder builder = new StringBuilder(); for (int i = 0; i < S.length(); i++) { int N = i + 1; builder.append(intToChar(charToInt(S.charAt(i)) - N)); } System.out.println(builder.toString()); } private static int charToInt(char c) { return (c - 'A'); } private static char intToChar(int i) { i = (i % 26); if (i < 0) { return (char) ('Z' + i + 1); } else { return (char) ('A' + i); } } }