#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;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIEZvbGhhCnsKCnB1YmxpYzoKCiAgICB2b2lkIE1hcmNhcigpewogICAgICAgIGNvdXQ8PCJNYXJjYXIgZGUgZm9saGEiOwogICAgfQp9OyAKCmNsYXNzIFBhcGVsCnsKICAgIEZvbGhhIGY7IAoKcHVibGljOgoKICAgIFBhcGVsKEZvbGhhICZmb2xoYV8pewogICAgICAgIGYgPSBmb2xoYV87CiAgICB9CgogICAgdm9pZCBNYXJjYXJGb2xoYSgpCiAgICB7CiAgICAgICAgZi5NYXJjYXIoKTsgCiAgICB9Cn07CgppbnQgbWFpbigpCnsKICAgIEZvbGhhIGZvbGhhOyAKICAgIFBhcGVsIHBhcGVsKGZvbGhhKTsgCiAgICBwYXBlbC5NYXJjYXJGb2xoYSgpOwoKICAgIHJldHVybiAwOwp9Cg==