All problems

Marking Raw Observations With rugplot

easyPythonSeabornrugplot

Calder Health puts a tick on the axis for every single reading under its distribution charts, because a smooth outline can look confident on top of eleven observations and the ticks make the real sample visible. Alongside it the report prints the two readings that bound everything else, since those set the axis and are where recording errors show up first.

Task: Print the smallest and largest readings.

Input

The first line holds one integer n, the number of readings. Each of the next n lines holds one reading, a number on its own. Readings may be negative.

Output

One line holding two numbers separated by a single space: the smallest reading first, then the largest. Each carries exactly two decimal places. With a single reading both numbers are that same reading.

Example:

Input:
3
5
1
9

Output:
1.00 9.00

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…