#C5440. Order Categorization

    ID: 49090 Type: Default 1000ms 256MiB

Order Categorization

Order Categorization

Given a list of orders, each represented by the quantity of an item, your task is to categorize the orders into three sizes: small, medium, and large.

An order is classified as follows:

  • Small: if the order quantity satisfies \(1 \leq order \leq 10\)
  • Medium: if \(11 \leq order \leq 50\)
  • Large: if \(51 \leq order \leq 100\)

You are given the number of orders followed by the order quantities. Your program should output three integers corresponding to the number of small, medium, and large orders, separated by a single space.

inputFormat

The first line of input contains an integer (N), representing the number of orders. The second line contains (N) space-separated integers, each representing an order quantity.

outputFormat

Output three integers separated by a single space: the count of small orders, medium orders, and large orders, respectively.## sample

3
1 5 10
3 0 0