#include <iostream>

class airship
{
public:
	unsigned int nPerson;
	unsigned int nWeight;
	void Show()
	{
		printf("person: %d, weight: %d\n", nPerson, nWeight);
	}
};

class airplane : airship
{
public:
	bool bPropeller;
	float nDistance;
	void Show()
	{
		printf("person: %d, weight: %d, type: %s, distance: %f\n", nPerson, nWeight, bPropeller ? "Propeller" : "Jet", nDistance);
	}
};

class baloon : airship
{
public:
	unsigned int bHydrogen;
	unsigned int nMaxAltitude;
	void Show()
	{
		printf("person: %d, weight: %d, fuel: %s, max-altitude: %d\n", nPerson, nWeight, bHydrogen ? "Hydrogen" : "Helium", nMaxAltitude);
	}
};

int main()
{
	airship s = airship();
	airplane p = airplane();
	baloon b = baloon();
	s.Show();
	p.Show();
	b.Show();
	return 0;
}
