The Lab Cup Table Tennis Competition is going to take place soon among laboratories in PKU. Students from the AI Lab are all extreme enthusiasts in table tennis and hold strong will to represent the lab in the competition. Limited by the quota, however, only one of them can be selected to play in the competition.To make the selection fair, they agreed on a single round robin tournament, in which every pair of students played a match decided by best of 5 games. The one winning the most matches would become representative of the lab. Now Ava, head of the lab, has in hand a form containing the scores of all matches. Who should she decide on for the competition?

The input contains exactly one test case. The test case starts with a line containing *n* (2 ≤ *n* ≤ 100), the number of students in the lab. Then follows an *n* × *n* matrix *A*. Each element in the matrix will be one of 0, 1, 2 and 3. The element at row *i* and column *j*, *a*_{ij}, is the number of games won by the *i*th student in his/her match with the *j*th student. Exactly one of *a*_{ij} and *a*_{ji} (*i* ≠ *j*) is 3 and the other one will be less than 3. All diagonal elements of the matrix are 0’s.

提交代码