#include using namespace std; // macros #define NUMALPHABETS ('Z'-'A'+1) #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) #define MIN(a,b) (a>b?b:a) #define MAX(a,b) (a>b?a:b) #define INT_IN(a) int a; cin >> a #define STR_IN(s) string s; cin >> s #define PRINTLN(s) cout << s << endl #define PRINTDOUBLELN(s) cout << setprecision(12) << (s) << endl; // util functions template inline T sqr(T x) {return x*x;} inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;} template inline string toString(T x) {ostringstream sout;sout<inline T max(vector v){T max=v[0]; FOR(i, 1, v.size())max=MAX(v[i], max); return max;} template inline T min(vector v){T min=v[0]; FOR(i, 1, v.size())min=MIN(v[i], min); return min;} template inline vector concat(vector a, vector b){vector ab; ab.reserve(a.size()+b.size());ab.insert(ab.end(),a.begin(),a.end());ab.insert(ab.end(),b.begin(),b.end());return ab;} // types typedef long long LL; // consts const double EPS = 1e-10; const double PI = acos(-1.0); char getCapAlphabetShift(char al, int shiftAmt){ if(shiftAmt < 0){ return getCapAlphabetShift(al, NUMALPHABETS+shiftAmt); } if(shiftAmt >= NUMALPHABETS){ return getCapAlphabetShift(al, shiftAmt % NUMALPHABETS); } for(int i = shiftAmt; i--;){ al++; if(al > 'Z')al='A'; } return al; } //debug #define dump(x) cerr << #x << " = " << (x) << endl; #define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl; int main(){ string s; int idx = 0; REP(i, s.length()){ cout << getCapAlphabetShift(s[i], - i - 1); } return 0; }