s = input() res = "" for i in range(len(s)): res += chr((ord(s[i])-ord('A') - (i+1)) % 26 + ord('A')) print(res)