class C {
private:
int d;
public:
void add(int x);
};
void C::add(int x) {
d = x + 10;
return;
}
class B {
private:
C c;
public:
C copy();
};
C B::copy() {
c.add(1);
return c;
}
class A {
private:
void start();
B b;
C c;
};
void A::start() {
c = b.copy();
}
int main() {}
Y2xhc3MgQyB7Cglwcml2YXRlOgoJCWludCBkOwoJcHVibGljOgoJCXZvaWQgYWRkKGludCB4KTsKfTsKCnZvaWQgQzo6YWRkKGludCB4KSB7CglkID0geCArIDEwOwoJcmV0dXJuOwp9CgpjbGFzcyBCIHsKCXByaXZhdGU6CgkJQyBjOwkJCglwdWJsaWM6CgkJQyBjb3B5KCk7Cn07CgpDIEI6OmNvcHkoKSB7CgljLmFkZCgxKTsJCglyZXR1cm4gYzsKfQoKY2xhc3MgQSB7Cglwcml2YXRlOgoJCXZvaWQgc3RhcnQoKTsKCQlCIGI7CgkJQyBjOwkJCn07Cgp2b2lkIEE6OnN0YXJ0KCkgewoJYyA9IGIuY29weSgpOwp9CgppbnQgbWFpbigpIHt9