Complex numbers: addition and subtraction#9531

Complex numbers: addition and subtraction

1 second
128 megabytes
Hard

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 a + bi or a - bi, where is an integer, is a non-negative integer. The real and imaginary part of each complex number is no more than 10^9 by absolute value.

Output

For each input example, print in a separate line the answer.

Examples

Example 1

Loading
Loading