#include<iostream>
using namespace std;
int(){
    string username;
    int age;
    cin>>username;
    cin>>age;
    if(username.length()<3){
        cout<<"Ivalid username";
    }
    else if(age<18||age>100){
        cout<<"Invalid age";
    }
    else{
        cout<<"Registration is successful";
    }
    return 0;
}