#CCBCHBAHAI0000171. Phân bố số tai nạn theo 6 khoảng (Accident Distribution in Six Ranges)
Phân bố số tai nạn theo 6 khoảng (Accident Distribution in Six Ranges)
Accident Distribution in Six Ranges
Source: Problem Solving and Program Design in C
Version: Phuoc Hung OJ Extended
Problem
You are given non-negative integers . Each value belongs to exactly one of six ranges:
- bucket 0: ;
- bucket 1: ;
- bucket 2: ;
- bucket 3: ;
- bucket 4: ;
- bucket 5: .
For , let be the number of values in bucket . Compute .
Input
- The first line contains .
- The second line contains .
Output
Print separated by spaces.
Subtasks
Subtask 1 (20 points): and .
Subtask 2 (30 points): and .
Subtask 3 (50 points): and .
Example
Input
8
0 99 100 250 399 400 500 921
Output
2 1 1 1 1 2
Explanation
0 and 99 go to bucket 0; 100 to bucket 1; 250 to bucket 2; 399 to bucket 3; 400 to bucket 4; 500 and 921 to bucket 5.