#include <iostream>
class A{
int n;
public:
A(int an):n(an){std::cout<<"A("<<n<<") new"<<std::endl;}
~A(){std::cout<<"A("<<n<<") delete"<<std::endl;}
};
class B{
A a;
public:
B(int an):a(an){}
~B(){}
};
int main() {
B b(10);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgpjbGFzcyBBewogICBpbnQgbjsKcHVibGljOgogICBBKGludCBhbik6bihhbil7c3RkOjpjb3V0PDwiQSgiPDxuPDwiKSBuZXciPDxzdGQ6OmVuZGw7fQogICB+QSgpe3N0ZDo6Y291dDw8IkEoIjw8bjw8IikgZGVsZXRlIjw8c3RkOjplbmRsO30KfTsKY2xhc3MgQnsKICAgQSBhOwpwdWJsaWM6CiAgIEIoaW50IGFuKTphKGFuKXt9CiAgIH5CKCl7fQp9OwppbnQgbWFpbigpIHsKICAgQiBiKDEwKTsKICAgcmV0dXJuIDA7Cn0=