t="" alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" for i,s in enumerate(input()): t += alphabet[alphabet.index(s)-(i%26+1)] print(t)