S=input() ct = 0 a = "" for i in S: a += (chr((ord(i) - ord('A') - (ct + 1)) % 26 + ord('A'))) ct += 1 print(a)