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