#include <iostream>
using namespace std;
class A {
private:
int x;
public:
A(int _x) : x(_x) {}
void m(const A& other) {
cout << other.x << endl;
}
};
int main() {
A foo = A(1);
A bar = A(2);
foo.m(bar);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgQSB7CiAgcHJpdmF0ZToKCWludCB4OwogIHB1YmxpYzoKICAgIEEoaW50IF94KSA6IHgoX3gpIHt9CiAgICB2b2lkIG0oY29uc3QgQSYgb3RoZXIpIHsKCQljb3V0IDw8IG90aGVyLnggPDwgZW5kbDsKCX0KfTsKCmludCBtYWluKCkgewoJQSBmb28gPSBBKDEpOwoJQSBiYXIgPSBBKDIpOwoJZm9vLm0oYmFyKTsKCXJldHVybiAwOwp9