#include <iostream>
#include <string>
using namespace std;

int main()
{
	int n;
	string S;
	while( cin >> S ){
		for( int i = 0; i < (int)S.size(); ++i ){
			cout << (char)( 'A' + ( ( ( S[ i ] - 'A' ) - ( i + 1 ) ) % 26 + 26 ) % 26 );
		}
		cout << endl;
	}
	return 0;
}