Given sequences of integers, compute the median of the medians of the sequences.
Every integer in any of the sequences is between and .
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, on a single line, the median of the medians of the sequences.
3 1 2 3 4 5 6 7 8 9