import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] arr = sc.next().toCharArray(); for (int i = 0; i < arr.length; i++) { int next = (arr[i] - 'A' - (i + 1) + (i + 1) * 26) % 26; arr[i] = (char)(next + 'A'); } System.out.println(arr); } }