# -*- coding: utf-8 -*- ASCII_ALPHABET_FIRST = 65 ASCII_ALPHABET_LAST = 91 ASCII_ALPHABET_RANGE = 26 def main(): S = list(input()) res = '' for i in range(len(S) - 1): shift_num = (i + 1) - (int(i / ASCII_ALPHABET_RANGE) * ASCII_ALPHABET_RANGE) converted = ord(S[i]) - shift_num if converted < ASCII_ALPHABET_FIRST : converted = ASCII_ALPHABET_LAST - (ASCII_ALPHABET_FIRST - converted) res = res + chr(converted) print(res + "\n") if __name__ == '__main__': main()