interface Converter { void encode(); void decode(); } class U_SA_ implements Converter { private final int firstNum = 65; private final int lastNum = 90; private char[] code; public U_SA_(String s) { this.code = s.toCharArray(); } public void encode() { } public void decode() { int num; for (int i = 0; i < code.length; i++) { num = (i + 1) % 26; code[i] = decode2(code[i], num); } } public char decode2(char c, int num) { if ((c - num) >= firstNum) { c -= num; return c; } else { c = (char) (lastNum - (firstNum - (c - num)) + 1); return c; } } public void printCode() { System.out.println(this.code); } } public class No_18 { public static void main(String[] args) { java.util.Scanner sc = new java.util.Scanner(System.in); U_SA_ u_sa_ = new U_SA_(sc.next()); u_sa_.decode(); u_sa_.printCode(); sc.close(); } }