import java.util.Scanner; class Main { public static void main(String[] args) { No0018 no = new No0018(); System.out.println(no.result()); } } class No0018 { public static int MIN_CODE = Character.getNumericValue('A'); public static int MAX_CODE = Character.getNumericValue('Z'); public static int CHAR_NUM = MAX_CODE - MIN_CODE + 1; private String s; private String result; public No0018() { Scanner sc = new Scanner(System.in); this.s = sc.next(); StringBuffer sb = new StringBuffer(""); for (int i = 0; i < this.s.length(); i++) { int code = this.s.codePointAt(i) - MIN_CODE + 1; code = code - (i + 1); if (code > 0) { sb.append(Character.toChars(MIN_CODE + code - 1)); } else { code %= CHAR_NUM; sb.append(Character.toChars(MIN_CODE - code - 1)); } } this.result = sb.toString(); } public String result() { return this.result; } }