judge = [10, 20, 30, 40, 50, 60, 121]



while True:



    input_count = int(eval(input()))



    if input_count == 0:

        break



    data = [int(eval(input())) for _ in range(input_count)]

    counter = [0] * 7



    for item in data:



        for index, j in enumerate(judge):

            if item < j:

                counter[index] += 1

                break



    counter = [str(item) for item in counter]

    print(("\n".join(counter)))



while True:



    input_count = int(eval(input()))



    if input_count == 0:

        break



    data = [int(eval(input())) for _ in range(input_count)]



    counter = [0] * 12



    for item in data:

        counter[item // 10] += 1



    counter[6] = sum(counter[6:])

    counter = counter[:7]



    counter = [str(item) for item in counter]

    print(("\n".join(counter)))



judge = [10, 20, 30, 40, 50, 60, 121]
while True:
    input_count = int(eval(input()))
    if input_count == 0:
        break
    data = [int(eval(input())) for _ in range(input_count)]
    counter = [0] * 7
    for item in data:
        for index, j in enumerate(judge):
            if item < j:
                counter[index] += 1
                break
    counter = [str(item) for item in counter]
    print(("\n".join(counter)))

while True:
    input_count = int(eval(input()))
    if input_count == 0:
        break
    data = [int(eval(input())) for _ in range(input_count)]
    counter = [0] * 12
    for item in data:
        counter[item // 10] += 1
    counter[6] = sum(counter[6:])
    counter = counter[:7]
    counter = [str(item) for item in counter]
    print(("\n".join(counter)))

-judge = [10, 20, 30, 40, 50, 60, 121] -    counter = [0] * 7 +    counter = [0] * 12 -        for index, j in enumerate(judge): -            if item < j: -                counter[index] += 1 -                break +        counter[item // 10] += 1 +    counter[6] = sum(counter[6:]) +    counter = counter[:7]