#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;
}