#include int main() { char ma[26][26]; char ans[2048]; std::string str; for(int i = 0; i < 26; ++i) { for(int j = 0; j < 26; ++j) { ma[i][j] = ((i + 52) - j - 1) % 26 + 'A'; } } std::cin >> str; for(int i = 0; i < str.size(); ++i) { ans[i] = ma[str[i]-'A'][i%26]; } ans[str.size()] = '\0'; std::cout << ans << std::endl; return 0; }