返回小组 Start 2024-09-27 18:32:25

一中作业1

End 2024-10-14 00:00:00
Contest is over.
Now 2026-02-22 14:40:02

A. 数字出现频率

Description

输入n个三位数,输出0~9之间的数字一共出现了多少次。

Input

第一行为一个正整数n,第二行为n个三位数。

Output

输出十行数字,第一行表示0出现次数,第二行表示1出现次数,......,第十行表示9出现次数。

Examples

Input

3
100 123 456

Output

2
2
1
1
1
1
1
0
0
0

Hint

对于100%的数据,1≤n≤100。


Submit

Login

Signup
Time Limit 1 second
Memory Limit 128 MB
Submit