eolymp
Competitions

XOR Contest

Rectangle

Pete must select 4 points on the plane so that they formed a rectangle with sides parallel to coordinate axes. Peter had already chosen three points and I am sure he picked them up correctly. Please help Pete find the coordinates of the fourth point.

Input

Contains three lines. Each line contains two integers, separated by a space - the coordinates of the vertices of the rectangle. All coordinates are in the range from 1 to 1000.

Output

Print two integers - the coordinates of the fourth vertex of the rectangle.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5 5
5 7
7 5
Output example #1
7 7
Input example #3
11 13
11 23
21 23
Output example #3
21 13
Input example #6
2 2
1 2
1 1
Output example #6
2 1
Source Crimea 2010