#include <iostream>
#include <array>

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

    long long int n;

    while (std::cin >> n, n) {
        std::array<long long int, 7> arr{{}};
        int age;
        for (; n--;) {
            std::cin >> age;
            age = (age > 69 ? 60 : age);
            ++arr[age / 10];
        }
        
        std::cout << arr[0] << "\n"
                  << arr[1] << "\n"
                  << arr[2] << "\n"
                  << arr[3] << "\n"
                  << arr[4] << "\n"
                  << arr[5] << "\n"
                  << arr[6] << "\n";
    }

    return 0;
}