s = list(input()) omoji = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] ans = [] for i in range(len(s)): ind = (omoji.index(s[i])-(i+1))%26 ans.append(omoji[ind]) print("".join(ans))