#include <iostream>
#include <array>

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

    long int n;

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

        while (n--) {
            std::cin >> 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] + arr[7] + arr[8]
                   + arr[9] + arr[10] + arr[11]
                   + arr [12] << '\n';
    }

    return 0;
}