#include <iostream>
using namespace std;
class A {
protected:
int hp;
public:
void showa() { cout<<hp<<endl; }
};
class B: public A {
private:
int hp;
public:
void setb(int x) { hp=x; }
void showb() { cout<<hp<<endl; }
};
int main() {
A x;
B y;
y.setb(11);
y.showb();
y.showa();
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgQSB7CnByb3RlY3RlZDoKICAgIGludCBocDsKcHVibGljOgogICAgdm9pZCBzaG93YSgpIHsgY291dDw8aHA8PGVuZGw7IH0KfTsKCmNsYXNzIEI6IHB1YmxpYyBBIHsKcHJpdmF0ZToKICAgIGludCBocDsKcHVibGljOgogICAgdm9pZCBzZXRiKGludCB4KSB7IGhwPXg7IH0KICAgIHZvaWQgc2hvd2IoKSB7IGNvdXQ8PGhwPDxlbmRsOyB9Cn07CgppbnQgbWFpbigpIHsKICAgIEEgeDsKICAgIEIgeTsKICAgIHkuc2V0YigxMSk7CiAgICB5LnNob3diKCk7CiAgICB5LnNob3dhKCk7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglyZXR1cm4gMDsKfQ==