#include #include #include #include using namespace std; int main() { string s; cin >> s; int size = s.size(); for (int i = 0; i < size; i++) { if (s[i] == 'A') { s[i] = 'Z'; } s[i] -= (i+1); } cout << s << endl; }