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

"""

http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0184



"""

import sys

from sys import stdin

from collections import defaultdict

input = stdin.readline





def main(args):

    while True:

        n = int(eval(input()))

        if n == 0:

            break

        visitors = defaultdict(int)



        for _ in range(n):

            age = int(eval(input()))

            if age < 10:

                visitors['under10'] += 1

            elif age < 20:

                visitors['10s'] += 1

            elif age < 30:

                visitors['20s'] += 1

            elif age < 40:

                visitors['30s'] += 1

            elif age < 50:

                visitors['40s'] += 1

            elif age < 60:

                visitors['50s'] += 1

            else:

                visitors['60s+'] += 1



        print((visitors['under10']))

        print((visitors['10s']))

        print((visitors['20s']))

        print((visitors['30s']))

        print((visitors['40s']))

        print((visitors['50s']))

        print((visitors['60s+']))





if __name__ == '__main__':

    main(sys.argv[1:])

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

"""

http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0184



"""

import sys

from sys import stdin

from collections import defaultdict

input = stdin.readline





def main(args):

    while True:

        n = int(eval(input()))

        if n == 0:

            break

        visitors = defaultdict(int)



        for _ in range(n):

            age = int(eval(input()))

            if age < 10:

                visitors['under10'] += 1

            elif age < 20:

                visitors['10s'] += 1

            elif age < 30:

                visitors['20s'] += 1

            elif age < 40:

                visitors['30s'] += 1

            elif age < 50:

                visitors['40s'] += 1

            elif age < 60:

                visitors['50s'] += 1

            else:

                visitors['60s+'] += 1



        print((visitors['under10']))

        print((visitors['10s']))

        print((visitors['20s']))

        print((visitors['30s']))

        print((visitors['40s']))

        print((visitors['50s']))

        print((visitors['60s+']))







def main2(args):

    while True:

        n = int(eval(input()))

        if n == 0:

            break

        age = [0] * (120 + 1)



        for _ in range(n):

            n = int(eval(input()))

            age[n] += 1



        print((sum(age[0:10])))

        print((sum(age[10:20])))

        print((sum(age[20:30])))

        print((sum(age[30:40])))

        print((sum(age[40:50])))

        print((sum(age[50:60])))

        print((sum(age[60:])))





if __name__ == '__main__':

    main2(sys.argv[1:])
# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0184
"""
import sys
from sys import stdin
from collections import defaultdict

input = stdin.readline


def main(args):
    while True:
        n = int(eval(input()))
        if n == 0:
            break
        visitors = defaultdict(int)
        for _ in range(n):
            age = int(eval(input()))
            if age < 10:
                visitors["under10"] += 1
            elif age < 20:
                visitors["10s"] += 1
            elif age < 30:
                visitors["20s"] += 1
            elif age < 40:
                visitors["30s"] += 1
            elif age < 50:
                visitors["40s"] += 1
            elif age < 60:
                visitors["50s"] += 1
            else:
                visitors["60s+"] += 1
        print((visitors["under10"]))
        print((visitors["10s"]))
        print((visitors["20s"]))
        print((visitors["30s"]))
        print((visitors["40s"]))
        print((visitors["50s"]))
        print((visitors["60s+"]))


if __name__ == "__main__":
    main(sys.argv[1:])

# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0184
"""
import sys
from sys import stdin
from collections import defaultdict

input = stdin.readline


def main(args):
    while True:
        n = int(eval(input()))
        if n == 0:
            break
        visitors = defaultdict(int)
        for _ in range(n):
            age = int(eval(input()))
            if age < 10:
                visitors["under10"] += 1
            elif age < 20:
                visitors["10s"] += 1
            elif age < 30:
                visitors["20s"] += 1
            elif age < 40:
                visitors["30s"] += 1
            elif age < 50:
                visitors["40s"] += 1
            elif age < 60:
                visitors["50s"] += 1
            else:
                visitors["60s+"] += 1
        print((visitors["under10"]))
        print((visitors["10s"]))
        print((visitors["20s"]))
        print((visitors["30s"]))
        print((visitors["40s"]))
        print((visitors["50s"]))
        print((visitors["60s+"]))


def main2(args):
    while True:
        n = int(eval(input()))
        if n == 0:
            break
        age = [0] * (120 + 1)
        for _ in range(n):
            n = int(eval(input()))
            age[n] += 1
        print((sum(age[0:10])))
        print((sum(age[10:20])))
        print((sum(age[20:30])))
        print((sum(age[30:40])))
        print((sum(age[40:50])))
        print((sum(age[50:60])))
        print((sum(age[60:])))


if __name__ == "__main__":
    main2(sys.argv[1:])

+def main2(args): +    while True: +        n = int(eval(input())) +        if n == 0: +            break +        age = [0] * (120 + 1) +        for _ in range(n): +            n = int(eval(input())) +            age[n] += 1 +        print((sum(age[0:10]))) +        print((sum(age[10:20]))) +        print((sum(age[20:30]))) +        print((sum(age[30:40]))) +        print((sum(age[40:50]))) +        print((sum(age[50:60]))) +        print((sum(age[60:]))) + + -    main(sys.argv[1:]) +    main2(sys.argv[1:])