#include #include using namespace std; int main() { string S; cin >> S; for( int i = 0; i < S.size(); i++ ) { S[i] -= (i+1)%26; if( S[i] < 'A' ) { S[i] = 'Z' - ( 'A' - S[i] ) + 1; } } cout << S << endl; return 0; }