#include #include #define STR_SIZE 1025 int main(void) { char* str; int idx, shift; str = (char*)calloc(sizeof(char), STR_SIZE); scanf("%s", str); for(idx = 0; idx < STR_SIZE; idx++) { shift = (idx+1) % 26; if(str[idx] != 0){ str[idx] -= shift; if(str[idx] < 'A'){ str[idx] += 26; } } } printf("%s\n", str); free(str); return 0; }