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) { try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { char[] arc = { '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' }; char[] c = br.readLine().toCharArray(); for (int i = 0; i < c.length; i++) { for (int j = 0; j < arc.length; j++) { int idx = j - (i % 26) - 1; if (c[i] == arc[j]) { if (idx < 0) { System.out.print(arc[idx + 26]); } else { System.out.print(arc[idx]); } } } } } catch (IOException e) { e.printStackTrace(); } } }