#include <iostream>
using namespace std;
class A
{
public:
A(int v) : m_v(v) {}
int getvalue() const { return m_v; }
void setvalue(const int v) { m_v = v;}
private:
int m_v;
};
A& operator+(A& a, const int v)
{
a.setvalue(a.getvalue() - v);
return a;
}
int main(void) {
A a(10);
a = a + 8;
cout << a.getvalue() << endl;
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgQQp7CnB1YmxpYzoKCUEoaW50IHYpIDogbV92KHYpIHt9CglpbnQgZ2V0dmFsdWUoKSBjb25zdCB7IHJldHVybiBtX3Y7IH0KCXZvaWQgc2V0dmFsdWUoY29uc3QgaW50IHYpIHsgbV92ID0gdjt9CnByaXZhdGU6CglpbnQgbV92Owp9OwoKQSYgb3BlcmF0b3IrKEEmIGEsIGNvbnN0IGludCB2KQp7CglhLnNldHZhbHVlKGEuZ2V0dmFsdWUoKSAtIHYpOwoJcmV0dXJuIGE7Cn0KCmludCBtYWluKHZvaWQpIHsKCUEgYSgxMCk7CglhID0gYSArIDg7CgkKCWNvdXQgPDwgYS5nZXR2YWx1ZSgpIDw8IGVuZGw7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglyZXR1cm4gMDsKfQ==