#include #include #include #include #include #include using namespace std; using uint = unsigned int; using ll = long long; void Solve( const string& S ); int main() { string S; cin >> S; Solve( S ); return 0; } void Solve( const string& S ) { const char A = 'A'; const char Z = 'Z'; const uint d = (uint)( Z - A + 1 ); const uint& size = S.size(); for( uint i = 0 ; i < size ; i++ ){ const char c = A + ( ( ( S[i] - A ) + ( d - ( ( i + 1 ) % d ) ) ) % d ); cout << c; } cout << endl; return; }