#include <bits/stdc++.h>
using namespace std;
// #OOPS #BasicProblem
class comp{
public:
int real;
int img;
comp(){
}
comp(int a,int b){
real=a;
img=b;
}
comp operator+(comp &c){
comp ans;
ans.real = this->real + c.real; // this is pointer to current object
ans.img = this->img + c.img;
return ans;
}
};
int main() {
comp c1(2,3);
comp c2(4,6);
comp c3=c1+c2;
cout<<c3.real<<" + j"<<c3.img<<endl;
return 0;
}