#include <iostream>

using namespace std;

int main()
{
    int n;
    int old;
    int num[7];

    while (cin >> n) {
        if (!n)
            break;

        for (int i = 0; i < 7; i++)
            num[i] = 0;

        for (int i = 0; i < n; i++) {
            cin >> old;

            for (int j = 60; j >= 0; j -= 10)
                if (old >= j) {
                    num[j / 10]++;
                    break;
                }
        }
    
        for (int i = 0; i < 7; i++) 
            cout << num[i] << endl;
    }

    return 0;
}