#include #include #define S_LENGTH 1000 int main(){ int i; char sent[S_LENGTH]; scanf("%s",sent); for(i=1;i<=strlen(sent);i++){ sent[i-1] = 'A'+(sent[i-1] + ('Z'-2*'A') - ((i-1) % ('Z'-'A'+1)))% ('Z'-'A'+1); } printf("%s\n",sent); return 0; }