#K10606. Student Score Categorization

    ID: 23284 Type: Default 1000ms 256MiB

Student Score Categorization

Student Score Categorization

You are given the scores of N students. Your task is to categorize each student's score into one of three categories:

  • Excellent: Score \(\ge 85\)
  • Good: Score \(60 \le s < 85\)
  • Needs Improvement: Score \(s < 60\)

After processing all scores, output three integers separated by a single space corresponding to the number of students in the Excellent, Good, and Needs Improvement categories respectively. This problem is designed to test your ability in implementing simple conditional logic and handling input/output via stdin and stdout.

inputFormat

The input is given via standard input (stdin).

The first line contains an integer (N) representing the number of students. The second line contains (N) space-separated integers, each representing a student's score.

outputFormat

Output three integers separated by a single space. These integers represent the counts of students classified as Excellent (score (\ge 85)), Good (score between 60 and 84, inclusive for 60), and Needs Improvement (score (< 60)) respectively.## sample

5
90 75 45 88 62
2 2 1

</p>