#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
#include <string>
#include <iomanip>
using namespace std;
class teacher
{
protected:
int sum;
string name;
char sex;
public:
void input_A()
{
cout<<"Please input the teacher's sum,name and sex:";
cin>>sum;
cin>>name;
cin>>sex;
}
void output_A()
{
cout<<"sum:"<<sum<<"name:"<<name<<"sex:"<<sex<<endl;
}
};
class birthday
{
public:
int year,month,day;
void input_B()
{
cout<<"Please input the teacher's birthday:(year,month,day):";
cin>>year;
{
protected:
int sum;
string name;
char sex;
public:
void input_A()
{
cout<<"Please input the teacher's sum,name and sex:";
cin>>sum;
cin>>name;
cin>>sex;
}
void output_A()
{
cout<<"sum:"<<sum<<"name:"<<name<<"sex:"<<sex<<endl;
}
};
class birthday
{
public:
int year,month,day;
void input_B()
{
cout<<"Please input the teacher's birthday:(year,month,day):";
cin>>year;