#abc197d. [abc197_d]Opposite
[abc197_d]Opposite
Problem Statement
On a two-dimensional coordinate plane where the axis points to the right and the axis points up, we have a regular -gon with vertices .
Here, is guaranteed to be even, and the vertices are in counter-clockwise order.
Let denotes the coordinates of .
Given , , , and , find and .
Constraints
- is even.
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print and in this order, with a space in between.
Your output is considered correct when, for each value printed, the absolute or relative error from our answer is at most .
Sample Input 1
Sample Output 1
We are given and .
The fact that , , , and form a square and they are in counter-clockwise order uniquely determines the coordinates of the other vertices, as follows: