#include <iostream>
#include <array>

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

    long long int n;

    std::array<int, 150> age2generation;

    for (int i = 0; i < 70; ++i) {
        age2generation[i] = i / 10;
    }
    for (int i = 70; i < 150; ++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;
}