题目描述
Problem Description
There are $N$ people who are between $0$ and $29$ years old.
The age of the $i$-th person is $A_i$ years.
When the number of people who are $x$ years old is $c_x$, output $c_0, c_1, ..., c_{29}$ in order separated by spaces.
Input Format
The input is given from the standard input in the following format:
$N$ $A_1$ $...$ $A_N$
Output Format
When the number of people who are $x$ years old is $c_x$, output $c_0, c_1, ..., c_{29}$ in order separated by spaces.
Sample Input and Output
Sample Input #1
5
1 19 3 29 0
Sample Output #1
1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1
Sample Input #2
2
0 0
Sample Output #2
2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Notes/Hints
Constraints
- $1 \leq N \leq 100000$
- $0 \leq A_i \leq 29$
Sample Explanation 1
There is one person each who is $0$ years old, $1$ year old, $3$ years old, $19$ years old, and $29$ years old.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
5
1 19 3 29 0
样例输出
1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1