P6330 [COCI 2007/2008 #1] CETVRTA

Description

Given the coordinates of three vertices of a rectangle on the coordinate plane, determine the coordinates of the fourth vertex and output them. It is guaranteed that the sides of the rectangle are parallel to the coordinate axes.

Input Format

There are $3$ lines. Each line contains two integers between $1$ and $1000$ (inclusive), representing the coordinates of one vertex of the rectangle.

Output Format

Output one line with two integers, representing the coordinates of the fourth vertex.

Explanation/Hint

#### Explanation **This problem is translated from [COCI2007-2008](https://hsin.hr/coci/archive/2007_2008/) [CONTEST #1](https://hsin.hr/coci/archive/2007_2008/contest1_tasks.pdf) *T1 CETVRTA*** Translated by ChatGPT 5