# No.18 うーさー暗号 S = input() alphabets = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] decoded = '' ''' for i in S: decoded += alphabets[(alphabets.index(i) - S.index(i)) % 26 - 1] ''' for i in range(len(S)): decoded += alphabets[(alphabets.index(S[i]) - i) % 26 - 1] print(decoded)