// editor1
#include <iostream>
using namespace std;
class Person
{
    protected:
    string name;
    int age;
    
    public:
    person(string n,int a)
    {
        name = n;
        age = a;
    virtual void showDetails()
    {
        cout<<"Name: "<<name<<endl;
        cout<<"Age: "<<age<<endl;
    }
};
class Employee : public Person
{
    int empID;
    string dept;
    public:
    Employee(string n,int a ,int id, string d) : Person(n, a)
    {
        empID = id;
        d = dept;
    }
    void showDetails() override{
        cout<<"Name: "<<name<<endl;
        cout<<"Age: "<<age<<endl;
        cout<<"Employee ID: "<<empID<<endl;
        cout<<"Department: "<<d<<endl;
    }
};
bool isValidName(const string &name)
{
    for (int i =0;i<name,length() ; i++)
    {
        char c=name[i];
        if(!((c >='A' && c<= 'Z') ||( c>= 'a' && c <= 'z')))
        {
            return false;
        }
    }
    return true;
}
int main()
{
    string name,dept;
    int age, empID;
    cin>>name>>age;
    cin>>empID>>dept;
    if(!isValidName(name) || age <0 || empID <= 0)
    {
        cout<<"Invalid input";
        return 0;
    }
    Employee e(name, age ,empID,d)
    e.showDetails();
    return 0;
}