Complex numbers: addition and subtraction
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Two complex numbers are given. Find their sum or difference.
Input
Each line contains an example of addition or subtraction 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 1K
Acceptance rate 43%