Rectangle
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
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.
Examples
Input #1
Answer #1
Input #3
Answer #3
Input #6
Answer #6
Submissions 4K
Acceptance rate 58%