atcoder#ARC104A. [ARC104A] Plus Minus

[ARC104A] Plus Minus

Score : 100100 points

Problem Statement

Takahashi has two integers XX and YY.

He computed X+YX + Y and XYX - Y, and the results were AA and BB, respectively.

Now he cannot remember what XX and YY were. Find XX and YY for him.

Constraints

  • 100A,B100-100 \leq A, B \leq 100
  • For the given integers AA and BB, there uniquely exist integers XX and YY such that X+Y=AX + Y = A and XY=BX - Y = B.
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

AA BB

Output

Print XX and YY.

2 -2
0 2

If X=0X = 0 and Y=2Y = 2, they match the situation: 0+2=20 + 2 = 2 and 02=20 - 2 = -2.

3 1
2 1