There are N students in a class and each student has got a positive integer from 0 to 100 (inclusive). Your task is to find the median of marks of the class. If N is even then return the value on the smaller side (refer to sample 2).
Note : Median is the value of the middle element in a sorted array.
INPUT FORMAT
OUTPUT FORMAT
CONSTRAINT
SUBTASK
Sample 2:
The sorted array is {2, 5, 8, 10}. As n=4 is even and there is no atomic middle element we choose the value on the lower side i.e. 5