#K72677. Categorize Books by Page Count

    ID: 33807 Type: Default 1000ms 256MiB

Categorize Books by Page Count

Categorize Books by Page Count

This problem requires you to categorize a list of books based on their number of pages into three categories:

  • Short: books with fewer than 100 pages.
  • Medium: books with between $$100$$ and $$300$$ pages (inclusive).
  • Long: books with more than 300 pages.

You are given the number of pages for each book. Your task is to count how many books fall into each category and output the counts in the order: Short, Medium, Long.

inputFormat

The input is given via standard input (stdin) and consists of two lines. The first line contains a single integer $$n$$ representing the number of books. The second line contains $$n$$ space-separated integers, where each integer represents the number of pages in a book.

outputFormat

Output three integers separated by a space via standard output (stdout): the number of short books, medium books, and long books respectively.

## sample
5
95 210 567 88 150
2 2 1