#include<iostream>
using namespace std;
class A
{private:
int x;
public:
void c(int xx)
{x=xx;}
int getx(){return x;}
};
class B:public A
{
public:
void d(int x,int yy)
{c(x);y=yy;}
int getY(){return y;}
private:
int y;
}
int main()
{
B b;
b.c(3);
cout<<b.getY()<<endl;
return 0;
}