#include<iostream>
#include<string>
#include<cctype>
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
{
    private:
    int empId;
    string department;
    public:
    Employee(string n,int a,int id,string dept):Person(n,a)
    {
        empID=id;
        department=dept;
    }
    void showDetails()override
    {
        Person::showDetails();
        cout<<"Employee ID:"<<empID<<endl;
        cout<<"Department:"<<department<<endl;
    }
};
bool isValidName(const string &n)
{
    for(char c:n){
        if(!isalpha(c))return false;
    }
    return true;
}
int main()
{
    string name, department;
    int age,empId;
    
    cin>>name>>age;
    cin>>empID>>department;
    
    if(!isValidName(name)||age<=0||empId<=0)
    {
        cout<<"Invalid input";
        return 0;
    }
    Employee e(name,age,empID,department);
    e.showDetails();
    return 0;
}