atcoder#ABC246A. [ABC246A] Four Points
[ABC246A] Four Points
Score : points
Problem Statement
There is a rectangle in the -plane. Each edge of this rectangle is parallel to the - or -axis, and its area is not zero.
Given the coordinates of three of the four vertices of this rectangle, , , and , find the coordinates of the other vertex.
Constraints
- There uniquely exists a rectangle with all of , , as vertices, edges parallel to the - or -axis, and a non-zero area.
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the sought coordinates separated by a space in the following format:
-1 -1
-1 2
3 2
3 -1
The other vertex of the rectangle with vertices is .
-60 -40
-60 -80
-20 -80
-20 -40