All problems

Customizing the Outlier Marker Style

easyPythonMatplotlibBox Plot

Thornhill Labs prints its reports in black and white, so the small circles marking flagged readings are easy to mistake for ordinary dots. House style swaps them for red crosses, which survive being photocopied. Whether any reading is flagged at all depends on the batch, so the report always states the largest reading outright — that way the reader knows what the top of the scale means even when no cross appears.

Task: Print the largest reading in the batch.

Input

The first line holds an integer n, the number of readings. Each of the next n lines holds one reading, possibly with decimals, in no particular order. n is at least 1.

Output

One line holding the largest reading, printed as Python prints the number it read: a reading of a thousand comes out as 1000.0, never as 1000 and never as 1000.00.

Example:

Input:
4
10
20
30
1000

Output:
1000.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…