#include #define LENGTH 1024 int main(void) { char s[LENGTH + 2], c; int i = 0, j; while ((c = getchar()) != EOF) { s[i] = c; i++; } for (j = 0; j < i; j++) { //printf("%c", s[j] - ((j % 26) + 1)); //printf("%d\n", s[j]); s[j] = s[j] - 64 - (j + 1); //printf("%d\n", s[j]); while(s[j] < 1) { s[j] += 26; } s[j] += 64; printf("%c", s[j]); } printf("\n"); return 0; }