#include<iostream>
#include<string>
using namespace std;
class Document
{
public:
	Document(){};
	~Document();
	Document(char *name);
	char *Name;
	void PrintNameOf();
};
Document::Document(char *name)
{
	Name=new char[strlen(name+1)];
	strcpy(Name,name);
}
Document::~Document()
{
	delete []Name;
}
void Document::PrintNameOf()
{
	cout<<"Name="<<Name<<endl;
}
class Book:public Document
{
	int PageCount;
public:
	Book(char *c,int a):Document(c)
	{
		PageCount=a;
	}
	void display();
};
void Book::display()
{
	cout<<"PageCount="<<PageCount<<endl;
}
main()
{
	Book d=("ske",654);
	d.PrintNameOf();
	d. display();
	return 0;
}