PivotOJ

CETVRTA

시간 제한: 1000ms메모리 제한: 128MB출처: COCI 2007-2008BOJ 3009

문제

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. 

입력

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

출력

Output the coordinates of the fourth vertex of the rectangle. 

 

예제

예제 1

입력
5 5
5 7
7 5
출력
7 7

예제 2

입력
30 20
10 10
10 20
출력
30 10
코드를 제출하려면 로그인하세요.