#include <iostream>
using namespace std;
class Folha
{
public:
void Marcar(){
cout<<"Marcar de folha";
}
};
class Papel
{
Folha *f;
public:
Papel(Folha *folha_){
f = folha_;
}
void MarcarFolha()
{
f->Marcar();
}
};
int main()
{
Folha folha;
Papel papel(&folha);
papel.MarcarFolha();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgRm9saGEKewoKcHVibGljOgoKICAgIHZvaWQgTWFyY2FyKCl7CiAgICAgICAgY291dDw8Ik1hcmNhciBkZSBmb2xoYSI7CiAgICB9Cn07CgpjbGFzcyBQYXBlbAp7CiAgICBGb2xoYSAqZjsKCnB1YmxpYzoKCgogICAgUGFwZWwoRm9saGEgKmZvbGhhXyl7CiAgICAgICAgZiA9IGZvbGhhXzsKICAgIH0KCiAgICB2b2lkIE1hcmNhckZvbGhhKCkKICAgIHsKICAgICAgICBmLT5NYXJjYXIoKTsKICAgIH0KfTsKCmludCBtYWluKCkKewogICAgRm9saGEgZm9saGE7CiAgICBQYXBlbCBwYXBlbCgmZm9saGEpOwogICAgcGFwZWwuTWFyY2FyRm9saGEoKTsKCiAgICByZXR1cm4gMDsKfQ==