import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); final int SIZE = 'Z' - 'A' + 1; char[] S = sc.next().toCharArray(); StringBuilder answer = new StringBuilder(); for(int i = 0; i < S.length; i++){ final int transed = S[i] - 'A'; int orig = transed - ((i + 1) % SIZE); if(orig < 0){ orig += SIZE; }else if(orig >= SIZE){ orig -= SIZE; } answer.append((char)(orig + 'A')); } System.out.println(answer); } }