Given ~N~ sequences of ~N~ integers, compute the median of the medians of the ~N~ sequences.
~1 \le N \le 99~
~N~ is odd.
Every integer in any of the sequences is between ~1~ and ~10^6~.
The first line contains a single positive integer, ~N~.
Each of the next ~N~ lines contains exactly ~N~ positive integers, the ~N~ integers in one of the sequences.
Output, on a single line, the median of the medians of the ~N~ sequences.
3 1 2 3 4 5 6 7 8 9