#include using namespace std; using ll = long long; #define itn int #define rep2(i,a,n) for(int i = (a);i < (n);i++) #define rep(i,n) rep2(i,0,n) using P = pair; int main(void){ string s; cin >> s; for(int i = 0;i < s.size();i++){ s[i] = (26+(s[i]-'A')-(i+1)) % 26 + 'A'; } cout << s << endl; }