a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' C = list(input()) for i, c in enumerate(C): print(a[a.index(c) - (i + 1) % 26], end='')