#include <bits/stdc++.h>
using namespace std;
class Complex {
public:
int a,b;
Complex(){
}
void num (int a, int b);
int modulus (int a, int b);
};
int Complex :: modulus (int a, int b){
int x = sqrt(a*a + b*b);
return x;
}
void Complex :: num (int a, int b){
if (b<0){
cout<<a<<b<<"i"<<endl;
}else{
cout<<a<<"+"<<b<<"i"<<endl;
}
}
int main (){
Complex c1, c2;
c1.num (6,8);
c2.num (4,-3);
int mod = c.modulus (4,3);
cout<<mod<<endl;
return 0;
}