S = input() alp = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" for i in range(len(S)): c = S[i] print(alp[(alp.index(c) - i - 1) % 26], end = "") print("")