#include<iostream>
#include<sstream>
#include<string>
#include<ctype.h>
using namespace std;
int main()
{
    string str;
    getline(cin, str);
    istringstream iss(str);

    string word;
    while(iss>>word)
    {
        for(int i=0;i<word.size();++i)
        {
            word[i] = toupper(word[i]);
        }
        if(word == "FOR") cout<<"4";
        else if(word == "YOU") cout<<"u";
        else if(word == "TO") cout<<"2";
        else if(word == "AND") cout<<"n";
        else cout<<word[0];
    }
    cout<<endl;
}
