#include <iostream>
using namespace std;
class A
{
public:
friend istream& operator>>(istream&, A&);
friend ostream& operator<<(ostream&, const A&);
private:
int x;
};
istream& operator>>(istream& i, A& a)
{
return i >> a.x;
}
ostream& operator<<(ostream& o, const A& a)
{
return o << a.x;
}
int main()
{
A a;
cin >> a;
cout << a;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmNsYXNzIEEKewpwdWJsaWM6CiAgICBmcmllbmQgaXN0cmVhbSYgb3BlcmF0b3I+Pihpc3RyZWFtJiwgQSYpOwogICAgZnJpZW5kIG9zdHJlYW0mIG9wZXJhdG9yPDwob3N0cmVhbSYsIGNvbnN0IEEmKTsKIApwcml2YXRlOgogICAgaW50IHg7Cn07CiAKaXN0cmVhbSYgb3BlcmF0b3I+Pihpc3RyZWFtJiBpLCBBJiBhKQp7CiAgICByZXR1cm4gaSA+PiBhLng7Cn0KIApvc3RyZWFtJiBvcGVyYXRvcjw8KG9zdHJlYW0mIG8sIGNvbnN0IEEmIGEpCnsKICAgIHJldHVybiBvIDw8IGEueDsKfQogCmludCBtYWluKCkKewogICAgQSBhOwogICAgY2luID4+IGE7CiAgICBjb3V0IDw8IGE7CiAgICByZXR1cm4gMDsKfQ==