Complex numbers: multiplication and division
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Two complex numbers are given. Find their product or quotient.
Input
Each line contains an example of multiplication or division of complex numbers. The complex number is given in the format or , where is integer, is non-negative integer. The real and imaginary part of each complex number is no more than by absolute value.
Output
For each input example, print in a separate line the answer.
Examples
Input #1
Answer #1
Submissions 630
Acceptance rate 30%