#include #include #define rep(i, n) for(long long i = 0; i < n; i++) #define ALL(v) (v).begin(), (v).end() using namespace std; using lint = long long; using mint = atcoder::modint; int main() { string s; cin >> s; mint::set_mod(26); rep(i, (int)s.size()) { mint x = mint(s[i] - 'A'); x -= mint(i + 1); s[i] = (char)(x.val() + 'A'); } cout << s << endl; }