All problems

The Five-Number Summary as a Box Plot

easyPythonMatplotlibBox Plot

Thornhill Labs measures how long a coating takes to cure. A batch of results is drawn as a box plot: a box spanning the middle half of the batch, a line inside it marking the typical result, and thin lines out to either side — called whiskers — reaching towards the extremes. The lab report needs that typical result written out in figures, because the line inside the box is a few pixels wide and no reader can take a number off it.

Task: Print the middle result: the one landing exactly in the centre once every result in the batch is put in order. The number of results is always odd, so exactly one result sits in the centre and nothing has to be averaged.

Input

The first line holds an odd integer n, the number of results. Each of the next n lines holds one cure time, possibly with decimals, and they arrive in no particular order. n is at least 1.

Output

One line with exactly 1 digit after the decimal point. A middle result of thirty prints as 30.0.

Example:

Input:
5
10
20
30
40
50

Output:
30.0

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…