#include<stdio.h>
#include<complex.h>
#define N 100
double ToNum( char * c) ;
int main( ) {
double complex z1, z2, z3;
char c1[ N] , c2[ N] ;
char * p = c1;
char op;
double imag, real, op1, op2;
scanf ( "%s%s%c" , c1
, c2
, & op
) ;
real = ToNum( c1) ;
while ( * p != '+' && * p != '-' )
p++;
op1= * p == '+' ? 1 : - 1 ;
imag = ToNum( ++ p) ;
imag *= op1;
z1 = real+ imag* I;
real = ToNum( c2) ;
while ( * p != '+' && * p != '-' )
p++;
op2 = * p == '+' ? 1 : - 1 ;
imag = ToNum( ++ p) ;
imag *= op2;
z2 = real + imag* I;
if ( op == '+' )
z3 = z1 + z2;
else if ( op == '-' )
z3 = z1 - z2;
else if ( op == '*' )
z3 = z1* z2;
else if ( op == '/' )
z3 = z1 / z2;
return 0 ;
}
double ToNum( char * c)
{
double num = 0 ;
return num;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8Y29tcGxleC5oPgoKCiNkZWZpbmUgTiAxMDAKZG91YmxlIFRvTnVtKGNoYXIgKmMpOwoKCmludCBtYWluKCl7Cgpkb3VibGUgY29tcGxleCB6MSwgejIsIHozOwpjaGFyIGMxW05dLCBjMltOXTsKY2hhciAqcCA9IGMxOwpjaGFyIG9wOwpkb3VibGUgaW1hZywgcmVhbCxvcDEsIG9wMjsKCnNjYW5mKCIlcyVzJWMiLCBjMSwgYzIsICZvcCk7CgogICAgcmVhbCA9IFRvTnVtKGMxKTsKICAgIHdoaWxlICgqcCAhPSAnKycgJiYgKnAgIT0gJy0nKQogICAgICAgIHArKzsKICAgIG9wMT0gKnAgPT0gJysnID8gMSA6IC0xOwogICAgaW1hZyA9IFRvTnVtKCsrcCk7CiAgICBpbWFnICo9IG9wMTsKICAgIHoxID0gcmVhbCtpbWFnKkk7CgogICAgcmVhbCA9IFRvTnVtKGMyKTsKICAgIHdoaWxlICgqcCAhPSAnKycgJiYgKnAgIT0gJy0nKQogICAgICAgIHArKzsKICAgIG9wMiA9ICpwID09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