#include<iostream.h>
class R
{
public: R(int x,int y)
{
a=x;b=y;
}
public :R()
{
a=b=0;
}
friend R operator +(const R &c,const R &c2);
friend void print(const R &c);
private:
int a,b;
};
R operator +(const R &c1,const R &c2)
{
return R(c1.a*c1.b,c2.a*c2.b);
}
void print(const R &c)
{
cout<<c.a+c.b<<endl;
}
void main()
{
R c1(2,3),c2(4,2),c3;
c3=c1+c2;
print(c3);
}