a,t,i = [chr(i) for i in range(65, 65+26)],"",0 for s in input(): w = a.index(s) - i if w == 0: t += a[25] else: t += a[w-1] i+=1 if i >len(a): i = 1 print(t)