#B2061. Counting Specific Integers

    ID: 11143 Type: Default 1000ms 256MiB

Counting Specific Integers

Counting Specific Integers

Given (k) positive integers (with (1<k<100)), each in the range ([1, 10]), count the occurrences of the integers (1), (5), and (10).

inputFormat

The first line contains an integer (k) which denotes the number of values. The second line contains (k) space-separated positive integers.

outputFormat

Output three integers separated by a space that represent the counts of (1), (5), and (10) respectively.

sample

5
1 5 3 10 5
1 2 1