#include #include using namespace std; char conv(char c, int i) { const char a = 65, z = 90; if (c - i < a) return conv(c + (z - a + 1), i); else return c - i; } int main() { string res; cin >> res; string ans = ""; for (int p = 1; p <= res.size(); ++p) ans += conv(res[p - 1], p); cout << ans << endl; return 0; }