atcoder#ARC104A. [ARC104A] Plus Minus
[ARC104A] Plus Minus
Score : points
Problem Statement
Takahashi has two integers and .
He computed and , and the results were and , respectively.
Now he cannot remember what and were. Find and for him.
Constraints
- For the given integers and , there uniquely exist integers and such that and .
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print and .
2 -2
0 2
If and , they match the situation: and .
3 1
2 1