#include using namespace std; int main(){ char str[1025]; int i = 0; int numA = (int)'A'; int numZ = (int)'Z'; int num = numZ - numA; scanf("%s",str); while(str[i] != '\0'){ str[i] -= i; while(str[i] < numA){ str[i] += num; } i++; } printf("%s",str); return 0; }