#include <iostream>
#include <array>

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

    long long int n;
    std::array<long long int, 71> arr;
    int age;

    while (std::cin >> n, n) {
        arr[10] = arr[20] = arr[30] = arr[40]
                = arr[50] = arr[60] = arr[70]
                = 0;
        for (; n--;) {
            std::cin >> age;
            age = (age > 69 ? 60 : age);
            ++arr[age + 10 - age % 10];
        }
   
        std::cout << arr[10] << "\n"
                  << arr[20] << "\n"
                  << arr[30] << "\n"
                  << arr[40] << "\n"
                  << arr[50] << "\n"
                  << arr[60] << "\n"
                  << arr[70] << std::endl;
    }

    return 0;
}