S=list(input())
L=list('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
i=0
O=""
for A in S:
 i+=1
 N=(L.index(A)-i%26)
 if N<0:N+=26
 O+=L[N]
print(O)