#include using namespace std; int main() { string s1 = "pfnovu", s2 = "orange", t1 = "axqwuf", t2 = "cipher", u1 = "mbgrihcdejkolsty", u2 = "bqsuftlmdxynzvwj"; map mp; set st; for (char c = 'a'; c <= 'z'; c++) { st.insert(c); } for (int i = 0; i < (int)s1.size(); i++) { mp[s1[i]] = s2[i]; st.erase(s2[i]); } for (int i = 0; i < (int)t1.size(); i++) { mp[t1[i]] = t2[i]; st.erase(t2[i]); } for (int i = 0; i < (int)u1.size(); i++) { mp[u1[i]] = u2[i]; st.erase(u2[i]); } mp['z'] = *st.begin(); string s; cin >> s; for (char c : s) { cout << mp[c]; } cout << endl; }