#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string S; cin >> S; for (int i = 0; i < (int)S.size(); i++) { S[i] = ((S[i] - 'A' + (26 - (i + 1))) % 26 + 26) % 26 + 'A'; } cout << S << '\n'; return 0; }