print(''.join('ABCDEFGHIJKLMNOPQRSTUVWXYZ'[ord(c) - ord('A') - (i + 1) % 26] for i, c in enumerate(input())))