class cplx{
    double re, im;
public:
    cplx(double _re=0, double _im=0):re(_re), im(_im){}
    cplx Plus(cplx b) const
    {
        return cplx(re+b.re, im+b.im);
    }
};


cplx operator+(cplx a, cplx b)
{
    return a.Plus(b);
}
