#include <iostream>
using namespace std;
class complex{
  int real, img;
public:
  complex(int Real, int Img){
    this->real=Real;
    this->img=Img;
  }
  void display(){
    cout << "complex number is: " << real << "+" << img << "i" << endl;
  }
  complex operator +(complex &c2){
    int resreal = this->real+c2.real;
    int resimg = this->img+c2.img;
    complex c3(resreal,resimg);
    cout << "The sum of complex numbers is: " << endl;
    return c3;
  }
};
int main(){
  complex c1(2,3), c2(4,5);
  c1.display();
  c2.display();
  complex c3= c1 + c2;
  cout << "Sum of complex numbers is: " << endl;
  c3.display();
  return 0;
}