alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" s = input() a = "" j=1 for let in s: for i in range(26): if let == alphabets[i]: a+=alphabets[i-j] j+=1 if j==27: j=1 print(a)