#include <bits/stdc++.h>
using namespace std;
map<pair<char,char>, char> m;
void init()
{
m[make_pair('!', '!')] = 'V';
m[make_pair('@', '!')] = 'F';
m[make_pair('#', '!')] = 'Y';
m[make_pair('$', '!')] = 'J';
m[make_pair('%', '!')] = '6';
m[make_pair('&', '!')] = '1';
m[make_pair('!', '@')] = '5';
m[make_pair('@', '@')] = '0';
m[make_pair('#', '@')] = 'M';
m[make_pair('$', '@')] = '2';
m[make_pair('%', '@')] = '9';
m[make_pair('&', '@')] = 'L';
m[make_pair('!', '#')] = 'I';
m[make_pair('@', '#')] = 'W';
m[make_pair('#', '#')] = 'H';
m[make_pair('$', '#')] = 'S';
m[make_pair('%', '#')] = '4';
m[make_pair('&', '#')] = 'Q';
m[make_pair('!', '$')] = 'K';
m[make_pair('@', '$')] = 'G';
m[make_pair('#', '$')] = 'B';
m[make_pair('$', '$')] = 'X';
m[make_pair('%', '$')] = 'T';
m[make_pair('&', '$')] = 'A';
m[make_pair('!', '%')] = 'E';
m[make_pair('@', '%')] = '3';
m[make_pair('#', '%')] = 'C';
m[make_pair('$', '%')] = '7';
m[make_pair('%', '%')] = 'P';
m[make_pair('&', '%')] = 'N';
m[make_pair('!', '&')] = 'U';
m[make_pair('@', '&')] = 'Z';
m[make_pair('#', '&')] = '8';
m[make_pair('$', '&')] = 'R';
m[make_pair('%', '&')] = 'D';
m[make_pair('&', '&')] = 'O';
}
int main()
{
string aaa = "!@#$%&";
set<char> ss(aaa.begin(), aaa.end());
// freopen("pass", "r", stdin);
init();
string s;
while (cin >> s)
{
if(ss.count(s[0]))
{
putchar(m[make_pair(s[0],s[1])]);
}
else
cout << s;
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgptYXA8cGFpcjxjaGFyLGNoYXI+LCBjaGFyPiBtOwp2b2lkIGluaXQoKQp7CiAgICBtW21ha2VfcGFpcignIScsICchJyldID0gJ1YnOwogICAgbVttYWtlX3BhaXIoJ0AnLCAnIScpXSA9ICdGJzsKICAgIG1bbWFrZV9wYWlyKCcjJywgJyEnKV0gPSAnWSc7CiAgICBtW21ha2VfcGFpcignJCcsICchJyldID0gJ0onOwogICAgbVttYWtlX3BhaXIoJyUnLCAnIScpXSA9ICc2JzsKICAgIG1bbWFrZV9wYWlyKCcmJywgJyEnKV0gPSAnMSc7CiAgICBtW21ha2VfcGFpcignIScsICdAJyldID0gJzUnOwogICAgbVttYWtlX3BhaXIoJ0AnLCAnQCcpXSA9ICcwJzsKICAgIG1bbWFrZV9wYWlyKCcjJywgJ0AnKV0gPSAnTSc7CiAgICBtW21ha2VfcGFpcignJCcsICdAJyldID0gJzInOwogICAgbVttYWtlX3BhaXIoJyUnLCAnQCcpXSA9ICc5JzsKICAgIG1bbWFrZV9wYWlyKCcmJywgJ0AnKV0gPSAnTCc7CiAgICBtW21ha2VfcGFpcignIScsICcjJyldID0gJ0knOwogICAgbVttYWtlX3BhaXIoJ0AnLCAnIycpXSA9ICdXJzsKICAgIG1bbWFrZV9wYWlyKCcjJywgJyMnKV0gPSAnSCc7CiAgICBtW21ha2VfcGFpcignJCcsICcjJyldID0gJ1MnOwogICAgbVttYWtlX3BhaXIoJyUnLCAnIycpXSA9ICc0JzsKICAgIG1bbWFrZV9wYWlyKCcmJywgJyMnKV0gPSAnUSc7CiAgICBtW21ha2VfcGFpcignIScsICckJyldID0gJ0snOwogICAgbVttYWtlX3BhaXIoJ0AnLCAnJCcpXSA9ICdHJzsKICAgIG1bbWFrZV9wYWlyKCcjJywgJyQnKV0gPSAnQic7CiAgICBtW21ha2VfcGFpcignJCcsICckJyldID0gJ1gnOwogICAgbVttYWtlX3BhaXIoJyUnLCAnJCcpXSA9ICdUJzsKICAgIG1bbWFrZV9wYWlyKCcmJywgJyQnKV0gPSAnQSc7CiAgICBtW21ha2VfcGFpcignIScsICclJyldID0gJ0UnOwogICAgbVttYWtlX3BhaXIoJ0AnLCAnJScpXSA9ICczJzsKICAgIG1bbWFrZV9wYWlyKCcjJywgJyUnKV0gPSAnQyc7CiAgICBtW21ha2VfcGFpcignJCcsICclJyldID0gJzcnOwogICAgbVttYWtlX3BhaXIoJyUnLCAnJScpXSA9ICdQJzsKICAgIG1bbWFrZV9wYWlyKCcmJywgJyUnKV0gPSAnTic7CiAgICBtW21ha2VfcGFpcignIScsICcmJyldID0gJ1UnOwogICAgbVttYWtlX3BhaXIoJ0AnLCAnJicpXSA9ICdaJzsKICAgIG1bbWFrZV9wYWlyKCcjJywgJyYnKV0gPSAnOCc7CiAgICBtW21ha2VfcGFpcignJCcsICcmJyldID0gJ1InOwogICAgbVttYWtlX3BhaXIoJyUnLCAnJicpXSA9ICdEJzsKICAgIG1bbWFrZV9wYWlyKCcmJywgJyYnKV0gPSAnTyc7Cn0KCmludCBtYWluKCkKewogICAgc3RyaW5nIGFhYSA9ICIhQCMkJSYiOwogICAgc2V0PGNoYXI+IHNzKGFhYS5iZWdpbigpLCBhYWEuZW5kKCkpOwogICAgLy8gZnJlb3BlbigicGFzcyIsICJyIiwgc3RkaW4pOwogICAgaW5pdCgpOwogICAgc3RyaW5nIHM7CiAgICB3aGlsZSAoY2luID4+IHMpCiAgICB7CiAgICAgICAgaWYoc3MuY291bnQoc1swXSkpCiAgICAgICAgewogICAgICAgICAgICBwdXRjaGFyKG1bbWFrZV9wYWlyKHNbMF0sc1sxXSldKTsKICAgICAgICB9CiAgICAgICAgZWxzZQogICAgICAgICAgICBjb3V0IDw8IHM7CiAgICB9Cn0=