#include <iostream>
using namespace std;

int main() {
    try{
        int age = 2;
        if(age<18){
            throw out_or_range("age must be 18");
        }
        cout<<age+20<<endl;
    }
    catch(out_or_range e){
        cout<<"Invalid input"<<endl;
    }
   
    return 0;
}