#include<iostream>
using namespace std;

int main(){
    string name,int age;
    try{
        cin>>name>>age;
        if(name.length()<3)throw "Invalid username";
        if(age<15||age>100)throw "Invalid age ";
        cout<<"Registration sucessful";
    }
    catch(const char* msg){
        cout<<msg;
    }
    return 0;
}