Problem list
Log in
#coci00037 · COCI 2007/2008 Contest 1

Cetvrta

Bronze III 1.0 s 32 MB

Mirko needs to choose four points in the plane so that they form a rectangle with sides parallel to the axes. He has already chosen three points and is confident that he hasn't made a mistake, but is having trouble locating the last point. Help him.

Input

Each of the three points already chosen will be given on a separate line. All coordinates will be integers between $1$ and $1000$.

Output

Output the coordinates of the fourth vertex of the rectangle.

Example 1

Input
5 5
5 7
7 5
Output
7 7

Example 2

Input
30 20
10 10
10 20
Output
30 10
Source
COCI 2007/2008 Contest 1
Appears in
Not part of a ladder, contest or set yet.
Accepted 1 Submissions 1 Acceptance 100% Solvers 1

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code