#include <iostream>
#include <array>

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);

    long long int n;

    std::array<int, 130> age2generation;

    int i;
    for (i = 0; i < 10; ++i) {
        age2generation[i] = 0;
    }
    for (i = 10; i < 20; ++i) {
        age2generation[i] = 1;
    }
    for (i = 20; i < 30; ++i) {
        age2generation[i] = 2;
    }
    for (i = 30; i < 40; ++i) {
        age2generation[i] = 3;
    }
    for (i = 40; i < 50; ++i) {
        age2generation[i] = 4;
    }
    for (i = 50; i < 60; ++i) {
        age2generation[i] = 5;
    }
    for (int i = 60; i < 130; ++i) {
        age2generation[i] = 6;
    }

    while (std::cin >> n, n) {
        
        std::array<long long int, 7> arr{{}};
        int age;

        for (; n--;) {
            std::cin >> age;
            ++arr[age2generation[age]];
        }
        
        for (const auto& cnt : arr) {
            std::cout << cnt << std::endl;
        }
    }

    return 0;
}