#include <iostream>
#include <string>
using namespace std;
int main(){
    string username;
    int age;
    getline(cin , username);
    cin>>age;
    
    try{
        if(username.length()<3){
            throw "Invalid input";
        }
        if(age <18 || age >100){
            throw "Invalid input";
        }
        cout<<"Registration successful";
    }
}