Tianjin University Online Judge
Contests Virtual Contests Problems Submit Runs Status Rank List Forum

2955.   CETVRTA
Time Limit: 1.0 Seconds   Memory Limit: 65536K
Total Runs: 998   Accepted Runs: 704    Multiple test files



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.

Sample Input #1

5 5
5 7
7 5

Sample Output #1

7 7

Sample Input #2

30 20
10 10
10 20

Sample Output #2

30 10


Source: CROATIAN OPEN COMPETITION IN INFORMATICS ; TJU Team Selection Contest 2008
Submit   List    Runs   Forum   Statistics

Tianjin University Online Judge v1.3.0
Maintance:G.D.Retop. Developer: SuperHacker, G.D.Retop