#include [[nodiscard]] static inline constexpr std::string solve(std::string&& S) noexcept { for (uint_fast32_t i = 0; i != S.size(); ++i) S[i] = ((S[i] - 'A') + (26 - (i + 1) % 26)) % 26 + 'A'; return S; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); std::string S; S.reserve(1024), std::cin >> S; std::cout << solve(std::move(S)) << '\n'; return 0; }