Given sequences of integers, compute the median of the medians of the sequences.
Constraints
is odd.
Every integer in any of the sequences is between and .
Input Specification
The first line contains a single positive integer, .
Each of the next lines contains exactly positive integers, the integers in one of the sequences.
Output Specification
Output, on a single line, the median of the medians of the sequences.
Sample Input
3
1 2 3
4 5 6
7 8 9
Sample Output
5
Comments