#include <iostream>
#include <sstream>
#include <string>
#include <map>

using namespace std;

string getFileData()
{
    string data;

    data += "6\n";

    data += "b\n"; data += "Second Letter in the Alphabet (Rhymes with 'Bee')\n";
    data += "a\n"; data += "The first letter in the alphabet (Vowel)\n";
    data += "why\n"; data += "Why what?\n";
    data += "why?\n"; data += "Why what?\n";
    data += "hello\n"; data += "Hello!\n";
    data += "hi\n"; data += "Hello!\n";

    return data;
}

int main()
{
    // let's pretend this is our file
    stringstream file(getFileData());

    int n;

    file >> n; // get number of entries
    file.get(); // ignore newline

    map<string, string> dataMap;

    for (int i = 0; i < n; ++ i)
    {
        string key, value;

        getline(file, key);
        getline(file, value);

        dataMap[key] = value;
    }

    // no need to sort. map
    // sorts automatically by key

    string input;

    while (true)
    {
        getline(cin, input);

        if (input.empty()) break; // empty line == quit

        // make everything lowercase
        for (int i = 0; i < input.length(); ++ i)
            if (input[i] >= 'A' && input[i] <= 'Z')
                input[i] += 'a' - 'A';

        // if the key exists, print the respective value
        if (dataMap.find(input) != dataMap.end())
            cout << dataMap[input] << endl;
        // otherwise, print an error message
        else cout << "Sorry, I don't understand..." << endl;
    }
}