#include <iostream>
using namespace std;

class Point{
    public: int x, y;
    
    Point(int x, int y){
        this->x=x;
        this->y=y;
    }
    Point operator*(int p){
        int x=this->x*p;
        int y=this->y*p;
        return Point(x, y);
    }
    Point operator+=(Point p){
        this->x+=p.x;
        this->y+=p.y;
        return *this;
    }
    void display(){
        cout<<"("<<x<<", "<<y<<")";
    }
};

int main()
{
    Point p1(1, 2);
    Point p2(3, 4);
    Point p4(11, 11);
    
    p1+=p2*10; //p1=(31,42) 
    
    p1.display();

    return 0;
}