class ClassMath
{
public int Real=0;
public int Imaginary=0;
public override string ToString()
{
return this.Real.ToString()+"+"+this.Imaginary.ToString()+"i";
}
public static ClassMath operator +(ClassMath a, ClassMath b)
{
ClassMath result = new ClassMath();
result.Imaginary = a.Imaginary + b.Imaginary;
result.Real = a.Real + b.Real;
return result;
}
}