# -*- coding: utf-8 -*-

import sys

'import math'

while 1:

    n=int(eval(input()))

    if n==0: sys.exit()

    arr=[0]*7

    while n:

        a=int(eval(input()))

        if a>60: a=61

        arr[int(a/10)]+=1

        n-=1

    for i in range(len(arr)):

        print((arr[i]))
while 1:

    n=int(eval(input()))

    if n==0:break

    arr=[0]*7

    for _ in range(n):

        a=int(eval(input()))

        if a>60: a=61

        arr[a//10]+=1

    for i in arr:print(i)
# -*- coding: utf-8 -*-
import sys

"import math"
while 1:
    n = int(eval(input()))
    if n == 0:
        sys.exit()
    arr = [0] * 7
    while n:
        a = int(eval(input()))
        if a > 60:
            a = 61
        arr[int(a / 10)] += 1
        n -= 1
    for i in range(len(arr)):
        print((arr[i]))

while 1:
    n = int(eval(input()))
    if n == 0:
        break
    arr = [0] * 7
    for _ in range(n):
        a = int(eval(input()))
        if a > 60:
            a = 61
        arr[a // 10] += 1
    for i in arr:
        print(i)

-# -*- coding: utf-8 -*- -import sys - -"import math" -        sys.exit() +        break -    while n: +    for _ in range(n): -        arr[int(a / 10)] += 1 -        n -= 1 -    for i in range(len(arr)): -        print((arr[i])) +        arr[a // 10] += 1 +    for i in arr: +        print(i)