// No.18 うーさー暗号 // https://yukicoder.me/problems/no/18 // #include #include using namespace std; string solve(string &S); int main() { string S; cin >> S; string ans = solve(S); cout << ans << endl; } string solve(string &S) { stringstream ss; char rot = 1; // ずらす文字数 for (char c: S) { c -= rot; if (c < 'A') c += 26; ss << c; rot++; rot %= 26; } return ss.str(); }