class a
{
};
class b :public a;
class c :public a;
int main()
{
string st;
a *temp;
cin>>st;
if(st == "b")
{
a = new b()
}
else if(st == "c")
{
a = new c()
}
}
Y2xhc3MgYQp7CiAgICAKfTsKCmNsYXNzIGIgOnB1YmxpYyBhOwpjbGFzcyBjIDpwdWJsaWMgYTsKCmludCBtYWluKCkKewogICAgc3RyaW5nIHN0OwogICAgYSAqdGVtcDsKICAgIGNpbj4+c3Q7CiAgICAKICAgIGlmKHN0ID09ICJiIikKICAgIHsKICAgICAgICBhID0gbmV3IGIoKQogICAgfQogICAgZWxzZSBpZihzdCA9PSAiYyIpCiAgICB7CiAgICAgICAgYSA9IG5ldyBjKCkKICAgIH0KICAgIAp9