s = input() t = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ans = "" for i in range(len(s)): ans += t[(t.find(s[i]) - i-1)%26] print(ans)