#include <iostream>
using namespace std;
struct Point {
int x;
int y;
Point(int _x, int _y):
x(_x), y(_y) {
}
Point& operator+ (const Point &other) {
this->x += other.x;
this->y += other.y;
return *this;
}
};
int main() {
Point p1(1, 0);
Point p2(2, 3);
Point p3 = p1 + p2;
cout << p3.x << " " << p3.y << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RydWN0IFBvaW50IHsKCWludCB4OwoJaW50IHk7CgkKCVBvaW50KGludCBfeCwgaW50IF95KToKCSAgeChfeCksIHkoX3kpIHsKCX0KCQoJUG9pbnQmIG9wZXJhdG9yKyAoY29uc3QgUG9pbnQgJm90aGVyKSB7CgkJdGhpcy0+eCArPSBvdGhlci54OwoJCXRoaXMtPnkgKz0gb3RoZXIueTsKCQlyZXR1cm4gKnRoaXM7Cgl9Cn07CgppbnQgbWFpbigpIHsKCVBvaW50IHAxKDEsIDApOwoJUG9pbnQgcDIoMiwgMyk7CgkKCVBvaW50IHAzID0gcDEgKyBwMjsKCQoJY291dCA8PCBwMy54IDw8ICIgIiA8PCBwMy55IDw8IGVuZGw7CgkKCXJldHVybiAwOwp9