Problem list
Log in
#r03349 · Online Judge > GoldOJ

Dice Rolls

Bronze III 2.0 s 256 MB

A die is rolled $N$ times. Print how many times each face $1$ through $6$ appeared, space-separated.

Input

First line $N$ ($1 \le N \le 10000$); second line $N$ values, each in $[1, 6]$.

Output

Print six counts (for faces $1..6$), space-separated.

Example 1

Input
10
1 2 3 4 5 6 1 2 3 1
Output
3 2 2 1 1 1
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code