## BlueBook - Payment

View as PDF

Points: 3
Time limit: 1.0s
Memory limit: 16M

Problem type
##### BlueBook

Given , you are to count how many times falls into any of the 6 ranges given below.

 Range A ~0 \dots 9\,999~ Range B ~10\,000 \dots 19\,999~ Range C ~20\,000 \dots 29\,999~ Range D ~30\,000 \dots 39\,999~ Range E ~40\,000 \dots 49\,999~ Range F ~50\,000 \dots 1\,000\,000~

#### Input Specification

Input consists of a bunch of integers which will be terminated by -1.
There will always be less than integers.

#### Output Specification

Output the number of occurrences of in the ranges AF. Output 0 if was never found for that particular range.
Do not include -1 in your calculations.

#### Sample Input

1
9999
10001
1000000
29999
-1

#### Sample Output

2
1
1
0
0
1