Submit solution

Points:
5 (partial)

Time limit:
1.0s

Memory limit:
1G

Problem type

Allowed languages

Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, ~~CommonLisp~~, D, Dart, F#, Forth, Fortran, Go, ~~Groovy~~, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, ~~Nim~~, ~~ObjC~~, OCaml, ~~Octave~~, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

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