while True:

    n = int(eval(input()))

    if n == 0:

        break

    a = [int(eval(input())) for _ in range(n)]

    for i in range(0, 60, 10):

        print((len(list([x for x in a if i <= x < i+10]))))

    print((len(list([x for x in a if 60 <= x <=120]))))
from collections import Counter



while True:

    n = int(eval(input()))

    if n == 0:

        break

    a = [int(eval(input())) for _ in range(n)]

    cnt = Counter(i for i in range(7))

    for v in a:

        if v < 10:

            cnt[0] += 1

        elif v < 20:

            cnt[1] += 1

        elif v < 30:

            cnt[2] += 1

        elif v < 40:

            cnt[3] += 1

        elif v < 50:

            cnt[4] += 1

        elif v < 60:

            cnt[5] += 1

        else:

            cnt[6] += 1

    for i in range(7):

        print((cnt[i]-1))
while True:
    n = int(eval(input()))
    if n == 0:
        break
    a = [int(eval(input())) for _ in range(n)]
    for i in range(0, 60, 10):
        print((len(list([x for x in a if i <= x < i + 10]))))
    print((len(list([x for x in a if 60 <= x <= 120]))))

from collections import Counter

while True:
    n = int(eval(input()))
    if n == 0:
        break
    a = [int(eval(input())) for _ in range(n)]
    cnt = Counter(i for i in range(7))
    for v in a:
        if v < 10:
            cnt[0] += 1
        elif v < 20:
            cnt[1] += 1
        elif v < 30:
            cnt[2] += 1
        elif v < 40:
            cnt[3] += 1
        elif v < 50:
            cnt[4] += 1
        elif v < 60:
            cnt[5] += 1
        else:
            cnt[6] += 1
    for i in range(7):
        print((cnt[i] - 1))

+from collections import Counter + -    for i in range(0, 60, 10): -        print((len(list([x for x in a if i <= x < i + 10])))) -    print((len(list([x for x in a if 60 <= x <= 120])))) +    cnt = Counter(i for i in range(7)) +    for v in a: +        if v < 10: +            cnt[0] += 1 +        elif v < 20: +            cnt[1] += 1 +        elif v < 30: +            cnt[2] += 1 +        elif v < 40: +            cnt[3] += 1 +        elif v < 50: +            cnt[4] += 1 +        elif v < 60: +            cnt[5] += 1 +        else: +            cnt[6] += 1 +    for i in range(7): +        print((cnt[i] - 1))