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 = "A".codePointAt(0); public static int MAX_CODE = "Z".codePointAt(0); 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); code %= CHAR_NUM; if (code > 0) { sb.append(Character.toChars(MIN_CODE + code - 1)); } else { sb.append(Character.toChars(MAX_CODE + code)); } } this.result = sb.toString(); } public String result() { return this.result; } }