S = str(input()) res = '' for i, s in enumerate(S): res += chr((ord(s) - ord('A') - i - 1) % 26 + ord('A')) print(res)