#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string str; while (cin >> str) { for (int i = 0; i < str.size(); i++) { char c = str[i]; if (c >= 'a' && c <= 'z') { int distance = c - 'a'; c = 'z' - distance; } if (c >= 'A' && c <= 'Z') { int distance = c - 'A'; c = 'Z' - distance; } cout << c; } cout << endl; }; }