#include #include #include #include #include #include #include #include int main(void) { //test用 //std::ifstream in("test.txt"); //std::cin.rdbuf(in.rdbuf()); std::string str; std::cin >> str; for (int i = 0; i < str.length(); i++) { int temp = str[i] - (i + 1); if (temp >= 65) { str[i] = temp; } else { temp = std::abs(65 - temp) % 26; if (temp != 0) { str[i] = 90 - temp + 1; } else { str[i] = 65; } } } std::cout << str << std::endl; }