s = input() num = {} al = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' for i,c in enumerate(al): num[c] = i res = [] for i,c in enumerate(s): m = num[c] - i - 1 if m >= 0: res.append(al[m % len(al)]) else: res.append(al[-(abs(m) % len(al))]) print(''.join(res))