#include <iostream>
class Int
{
public:
Int(const int& a) : integ(a) {}
friend std::ostream& operator<<(std::ostream& oss, const Int& rhs)
{
return oss << rhs.integ;
}
int operator+(Int o){return integ+o.integ+1;}
private:
int integ;
};
int main()
{
Int two = 2;
std::cout << two << " + " << two << " = " << two + two;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKY2xhc3MgSW50CnsKcHVibGljOgogICAgSW50KGNvbnN0IGludCYgYSkgOiBpbnRlZyhhKSB7fQoKICAgIGZyaWVuZCBzdGQ6Om9zdHJlYW0mIG9wZXJhdG9yPDwoc3RkOjpvc3RyZWFtJiBvc3MsIGNvbnN0IEludCYgcmhzKQogICAgewogICAgICAgIHJldHVybiBvc3MgPDwgcmhzLmludGVnOwogICAgfQogICAgaW50IG9wZXJhdG9yKyhJbnQgbyl7cmV0dXJuIGludGVnK28uaW50ZWcrMTt9CiAgICAKcHJpdmF0ZToKICAgIGludCBpbnRlZzsKfTsKCmludCBtYWluKCkKewogICAgSW50IHR3byA9IDI7CiAgICBzdGQ6OmNvdXQgPDwgdHdvIDw8ICIgKyAiIDw8IHR3byA8PCAiID0gIiA8PCB0d28gKyB0d287Cn0=