#include<iostream>
using namespace std;
int main()
{
    int age;
    string empid_str;
    string department;
    cin>>name>>age;
    cin>>empid_str>>department;
    try{
        int empid=stoi(empid_str);
        employee emp(name,age,empid,department);
        if(empid.isvalid()){
            empid.isvlaid();
        }else{
            cout<<"Invalid input"<<endl;
        }
    }catch(const exception& e){
        cout<<"Invalid input"<<endl;
    }
    return 0;
}