    #include <iostream>
    #include <regex>
    using namespace std;
 
    int main() {
        string str;
        getline(cin, str);
 
        regex e("(\\d+)\\s+(\\w+)\\s+(.*)");

        if (regex_match(str,e)) 
            cout<<"Matched";
        else
            cout<<"No Match";
        return 0;
    }
