All problems

A Title for the Whole Figure vs. Each Subplot

mediumPythonMatplotlibsuptitle

A figure with two panels needs headings at two levels, and Pike Street Studio keeps them distinct. Each panel gets a short heading naming what that panel shows, and one heading sits above the pair naming what the whole figure is about. Collapse the two levels and a reader either cannot tell the panels apart or cannot tell what they have in common. The caption underneath counts how much of the data sits below its own average.

Task: Print how many readings are strictly below the average of all the readings. A reading landing exactly on the average is not below it and does not count.

Input

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

Output

One line holding a whole number: how many readings fall below the average.

Example:

Input:
4
10
20
30
100

Output:
3

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…