#include <iostream>
#include <string>
class Example;
class Clone
{
public:
void f(Example);
};
class Example
{
public:
friend void Clone::f(Example);
Example()
{
x = 10;
}
private:
int x;
};
void Clone::f(Example ex)
{
std::cout << ex.x;
};
int main()
{
Clone c;
Example e;
c.f(e);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKY2xhc3MgRXhhbXBsZTsKCmNsYXNzIENsb25lCnsKcHVibGljOgogICAgdm9pZCBmKEV4YW1wbGUpOwp9OwoKY2xhc3MgRXhhbXBsZQp7CnB1YmxpYzoKICAgIGZyaWVuZCB2b2lkIENsb25lOjpmKEV4YW1wbGUpOwogICAgRXhhbXBsZSgpCiAgICB7CiAgICAgICAgeCA9IDEwOwogICAgfQogICAgCnByaXZhdGU6CiAgICBpbnQgeDsKfTsKCnZvaWQgQ2xvbmU6OmYoRXhhbXBsZSBleCkKewogICAgc3RkOjpjb3V0IDw8IGV4Lng7Cn07CgppbnQgbWFpbigpCnsKICAgIENsb25lIGM7CiAgICBFeGFtcGxlIGU7CiAgICBjLmYoZSk7Cn0=