11559 - Multiplying Complex number   

Description

Multiplying Complex number is very difficult for Nymphia, so she always does the wrong answer for her homework about this chapter. After she finish the first class of introduction of programming , she thinks that she can design a program about calculating Complex number so that she won’t do homework by herself anymore. In order to check whether the answer from her program is correct or not , she hope everyone can help her about this. 

 

Input

There is only one line of input , two complex number “a” , “b” have same format (x,y)  (means x+yi), -100 <=  x ,y <= 100 , and  “a” , “ b”  separate by comma.

 

Output

Multiplying the input of two complex number , output the answer as the format of input . If any number of answer is positive , you should add “+” in front of that number.

Sample Input  Download

Sample Output  Download

Tags




Discuss