#include<iostream>
#include<string>
using namespace std;
class Document{
public:
Document(){
cin>>name;
}
void Display()const{
cout<<"Name:"<<name<<endl;
}
private:
string name;
};
class Book:public Document{
public:
Book(){
cin>>page;
}
void Display() const{
Document::Display() ;
cout<<"Page:"<<page<<endl;
}
private:
int page;
};
int main()
{
cout<<"Input Name and Page:";
Book book;
book.Display();
return 0;
}