#define REP(i,n) for(int i=0; i<(int)(n); i++) #include #include #include using namespace std; int main(){ char buff[1026]; scanf("%s", buff); const int len = strlen(buff); const int n = 'z' - 'a' + 1; REP(i,len){ buff[i] = (buff[i] - 'A' + (n - 1) * (i + 1)) % n + 'A'; } puts(buff); return 0; }