def main(): s = input() ans = '' for i in range(len(s)): num = ord(s[i])-65 ans += chr(65 + (num - i - 1) % 26 ) print(ans) if __name__ == '__main__': main()