s = list(input()) print("".join([chr((ord(s) - (i+1) - ord("A")) % (ord("Z") - ord("A") + 1) + ord("A")) for i, s in enumerate(s)]))