s = input() al = [chr(ord("A")+i) for i in range(26)] ans = "" for i, j in enumerate(s, 1): ans += al[(al.index(j)-i)%26] print(ans)