s = list(input()) a = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ans = "" for i, x in enumerate(s): ans += a[(a.index(x)-i-1) % 26] print(ans)