#include "bits/stdc++.h" using namespace std; #define FOR(i, j, k) for(int i = j; i < k; ++i) #define rep(i, j) FOR(i, 0, j) #define FORr(i, j, k) for(int i = j; i >= k; --i) #define repr(i, j) FOR(i, j, 0) #define INF (1 << 30) typedef long long ll; typedef unsigned long long ull; typedef pair P; typedef pair Pi; const int MOD = 1000000007; const int dy[] = { 0, 0, 1, -1 }; const int dx[] = { 1, -1, 0, 0 }; template void chmin(T& a, const T& b) { a = min(a, b); } template void chmax(T& a, const T& b) { a = max(a, b); } int gcd(int a, int b) { return (a % b == 0) ? b : gcd(b, a % b); } int main() { string s; cin >> s; rep(i, s.size()) { int tmp = (i + 1) % 26; if (s[i] - tmp < 'A') { tmp = tmp - (s[i] - 'A') - 1; s[i] = 'Z' - tmp; } else s[i] -= tmp; cout << s[i]; } cout << "\n"; return 0; }