All problems

Restricting the Histogram's Range

mediumPythonMatplotlibHistogram

Ashgrove Analytics reads humidity probes at Calder Waterworks. A working probe reports a percentage, so anything below 0 or above 100 is a broken probe rather than strange weather. The picture is deliberately drawn across only the 0-to-100 stretch: without that limit, one reading of minus four thousand would squash every genuine bar into a smear at one end. The faults still have to be reported, and they go underneath as text.

Task: Print how many readings fall outside the band from 0 to 100. Both ends of the band are valid: a reading of exactly 0 and a reading of exactly 100 are in range and are not faults. Only readings below 0 or above 100 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 and possibly negative. n is at least 1.

Output

One line holding a whole number: how many readings are faults.

Example:

Input:
4
50
-10
200
30

Output:
2

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…