Help Mr. Sidhu, your favourite math teacher, find the median mark on a class test. The first line will consist of , the number of marks. This line will be followed by lines with each containing an integer mark . Round to the nearest integer if necessary. We use standard mathematical conventions for rounding.
Sample Input 1
2
50
100
Sample Output 1
75
Sample Input 2
3
40
99
100
Sample Output 2
99
Comments