#K43392. Categorize Grades

    ID: 27299 Type: Default 1000ms 256MiB

Categorize Grades

Categorize Grades

You are given a list of student grades (each an integer between 0 and 100). Your task is to categorize these grades into the following groups based on their value:

  • $$A: 90 \leq grade \leq 100$$
  • $$B: 80 \leq grade \leq 89$$
  • $$C: 70 \leq grade \leq 79$$
  • $$D: 60 \leq grade \leq 69$$
  • $$F: 0 \leq grade \leq 59$$

Read the grades from standard input and output the count for each category in the order A, B, C, D, F (space separated) to standard output.

inputFormat

The input is a single line containing a space-separated list of integers representing the grades. It is possible that the list is empty, in which case there are no grades.

outputFormat

The output is a single line containing five integers separated by a single space. These represent the counts of grades in the categories A, B, C, D, and F respectively.

## sample
85 92 78 64 45 88 100 73 68 91 50
3 2 2 2 2