import java.util.Scanner; public class No18 { static final String ALPHABETS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String result = ""; for (int i = 0; i < s.length(); i++) { int codeId = ALPHABETS.indexOf(s.charAt(i)); int decodeId = (codeId - (i + 1)) % ALPHABETS.length(); if (decodeId < 0) { decodeId += ALPHABETS.length(); } result += ALPHABETS.charAt(decodeId); } System.out.println(result); sc.close(); } }