while 1:

    n = int(input())

    if not n: break

    c = [0 for i in range(7)]

    for i in range(n):

        age = int(input())

        if age < 10: c[0] += 1

        elif 10 <= age < 20: c[1] += 1

        elif 20 <= age < 30: c[2] += 1

        elif 30 <= age < 40: c[3] += 1

        elif 40 <= age < 50: c[4] += 1

        elif 50 <= age < 60: c[5] += 1

        else: c[6] += 1

    for i in range(len(c)):

        print(c[i])
while True:

    n = int(input())

    if n == 0: break

    ans = [0]*7

    for i in range(n):

        age = int(input())

        if age <= 9:

            ans[0] += 1

        elif age <= 19:

            ans[1] += 1

        elif age <= 29:

            ans[2] += 1

        elif age <= 39:

            ans[3] += 1

        elif age <= 49:

            ans[4] += 1

        elif age <= 59:

            ans[5] += 1

        else:

            ans[6] += 1

    for c in ans:

        print(c)
while 1:
    n = int(input())
    if not n:
        break
    c = [0 for i in range(7)]
    for i in range(n):
        age = int(input())
        if age < 10:
            c[0] += 1
        elif 10 <= age < 20:
            c[1] += 1
        elif 20 <= age < 30:
            c[2] += 1
        elif 30 <= age < 40:
            c[3] += 1
        elif 40 <= age < 50:
            c[4] += 1
        elif 50 <= age < 60:
            c[5] += 1
        else:
            c[6] += 1
    for i in range(len(c)):
        print(c[i])

while True:
    n = int(input())
    if n == 0:
        break
    ans = [0] * 7
    for i in range(n):
        age = int(input())
        if age <= 9:
            ans[0] += 1
        elif age <= 19:
            ans[1] += 1
        elif age <= 29:
            ans[2] += 1
        elif age <= 39:
            ans[3] += 1
        elif age <= 49:
            ans[4] += 1
        elif age <= 59:
            ans[5] += 1
        else:
            ans[6] += 1
    for c in ans:
        print(c)

-while 1: +while True: -    if not n: +    if n == 0: -    c = [0 for i in range(7)] +    ans = [0] * 7 -        if age < 10: -            c[0] += 1 -        elif 10 <= age < 20: -            c[1] += 1 -        elif 20 <= age < 30: -            c[2] += 1 -        elif 30 <= age < 40: -            c[3] += 1 -        elif 40 <= age < 50: -            c[4] += 1 -        elif 50 <= age < 60: -            c[5] += 1 +        if age <= 9: +            ans[0] += 1 +        elif age <= 19: +            ans[1] += 1 +        elif age <= 29: +            ans[2] += 1 +        elif age <= 39: +            ans[3] += 1 +        elif age <= 49: +            ans[4] += 1 +        elif age <= 59: +            ans[5] += 1 -            c[6] += 1 -    for i in range(len(c)): -        print(c[i]) +            ans[6] += 1 +    for c in ans: +        print(c)