using System;

class Program {
    static void Main() {
        for (string line; (line = Console.ReadLine()) != "0";) {
            var n = int.Parse(line);
            var ages = new int[7];

            for (var i = 0; i < n; i++) {
                var age = int.Parse(Console.ReadLine());
                ages[age >= 60 ? 6 : (age / 10)] ++;
            }

            foreach (var count in ages) {
                Console.WriteLine(count);
            }
        }
    }
}