#include <iostream>
using namespace std;

class Vector
{
	public:
	Vector(int a, int b)
	{
		x = a;
		y = b;
	}
	void wrt()
	{
		cout<<"x = " << x << " y = " << y << endl;
	}
	void set(int a, int b)
	{
		x = a;
		y = b;
	}
	private:
	int x, y;
};

int main() {
	Vector a(10, 10);
	Vector* b = &a;
	Vector c = *b;
	a.set(20, 20);
	a.wrt();
	c.wrt();
	return 0;
}