#B4074. Calculate Student Grade Distribution
Calculate Student Grade Distribution
Calculate Student Grade Distribution
After the exam, each student is assigned a grade based on their score as follows:
- Excellent: (90\sim100)
- Good: (80\sim89)
- Pass: (60\sim79)
- Fail: below (60)
Your task is to count the number of students in each grade category.
inputFormat
The first line contains an integer (n), representing the number of students. The second line contains (n) integers separated by spaces, where each integer represents a student's score.
outputFormat
Print four integers separated by a space. These integers represent the counts of students in the following order: Excellent, Good, Pass, and Fail.
sample
5
90 85 75 55 100
2 1 1 1