code = input() alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" decoded = [alphabet[alphabet.index(c) - (n % 26 + 1)] for n, c in enumerate(code)] print("".join(decoded))