s = str(input()) res = [] for i, c in enumerate(s): j = (ord(c)-ord('A')-(i+1))%26 d = chr(j+ord('A')) res.append(d) print(''.join(res))