#include <iostream>
using namespace std;
class Class {
int a,b;
public :
friend istream& operator>>(istream& in,Class& p);
friend ostream& operator<<(ostream& out,Class& p);
Class& operator+(const Class& p)
{
// don't know what i should write here
return *this;
}
};
istream& operator>>(istream& in,Class& p)
{
in>>p.a>>p.b;
return in;
}
ostream& operator<<(ostream& out,Class& p)
{
out<<p.a<< " " <<p.b;
cout << endl;
return out;
}
int main()
{
Class m1,m2,*p;
p = &m1;
cin >> m1;
p = &m2;
cin >> m2;
cout << m1 << m2;
// I wanna print m1.a+m2.a and m1.b+m2.b
return 0;
}