#include <iostream>

using namespace std;

int main()
{
    int n;

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

        int old;
        int num[7] = {0};

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

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

    return 0;
}