import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); char[] sch = s.toCharArray(); char[] ansch = new char[s.length()]; char a = 'B' - 'A'; char b = 'Z' - 'A'; for(int i = 0; i < s.length(); i++) { char c = sch[i]; int move = (i + 1) % 26; for(int j = 0; j < move; j++) { if(c == 'A') { c += b; } else { c -= a; } } ansch[i] = c; } String ans = new String(ansch); System.out.println(ans); } }