All problems

Normalizing a Histogram With stat='density'

mediumPythonSeabornstat

Calder Health compares this month's readings with last year's, and last year has twenty times as many. On raw counts the older chart dwarfs the newer one and no comparison is possible, so both are rescaled to density: the bar heights are adjusted so the total area under each chart is 1, which makes the shapes comparable regardless of size. The caption still has to state how many readings the chart was built from, because rescaling hides exactly that.

Task: Print how many readings the chart was built from.

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.

Output

One line holding a single whole number: how many readings there are. Every reading counts, including repeats — two readings of the same value are two readings, not one.

Example:

Input:
4
1
2
3
4

Output:
4

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…