#include int main(void){ int i; char str[1024]; scanf("%s", str); for(i = 0; str[i] != '\0'; i++){ if(str[i] - (i+1) < 'A'){ str[i] = 'Z' - ('A' + (i+1) - str[i] - 1) % 26; } else str[i] = str[i] - (i+1); } printf("%s\n", str); return 0; }