#include <math.h>
class cplx
{
    double re, im;
public:
    cplx(double _re, double _im);
    void setRe(double _re) {re = _re;}
    double getRe() {return re;}
    void setIm(double _im){im = _im;}
    double getIm(){return im;}
    double abs();
};

double cplx::abs()
{
    return sqrt(re*re+im*im);
}

cplx::cplx(double _re, double _im)
{
    setRe(_re);
    setIm(_im);
}
