3944: Gomoku

内存限制:128 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:4 解决:4

题目描述

On a 10-row, 10-column board, there are four pieces have been placed.


You need to add another piece so that the five pieces are connected into a continuous line.


Write a program to find the coordinate of the added piece.


Note:
For four placed pieces, there is a unique position for the added piece to form a continuous line. 


E.g.
There are four placed pieces: (1,0), (1,2), (1,3), (1,4)
Only add (1,1) can form a continuous line, so your output is (1 ,1).


输入

The input contains a set of test data, including four lines.


Each line are two integers i and j (0 <= i, j <= 9), representing the rows and columns of the pieces, which are the coordinate of placed pieces.



输出

The output consists of one line, two integers, representing the rows and columns of the added pieces.

样例输入 复制

0 0
0 1
0 3
0 4

样例输出 复制

0 2