#SCKTCUOIKI0010. Thống kê kết quả học tập (Student Score Statistics)
Bài tập này chưa được xếp vào lộ trình.
Mục lục đề ⌄
Thống kê kết quả học tập (Student Score Statistics)
Student Score Statistics
**Version: Phuoc Hung OJ Extended
Problem Statement
A class has students, each with an integer test score from to . Scores are divided into four disjoint categories: Excellent (Giỏi) for –, Good (Khá) for exactly , Average (Trung bình) for or , and Not Passed (Chưa đạt) for –. Count the students in each category; each student contributes to exactly one category.
Input
The first line contains integer , the number of students.
Each of the next lines contains integer , the score of student ().
Output
Print exactly four lines, each containing one integer. Line 1: number of Excellent students. Line 2: number of Good students. Line 3: number of Average students. Line 4: number of Not Passed students. Do not print category labels.
Subtasks
- Subtask 1 (20 points): ; for every .
- Subtask 2 (30 points): ; for every .
- Subtask 3 (50 points): ; for every .
Examples
Input
6
9
7
5
3
8
10
Output
3
1
1
1
Explanation
There are scores: . Excellent contains (3 students); Good contains (1); Average contains (1); Not Passed contains (1). Hence the four output lines are 3, 1, 1, 1.