#include <iostream>

using namespace std;

int main() {
    int n;
    while (cin >> n) {
        if (n == 0) break;
        int ys[7];
        for (int i = 0; i < 7; i++) ys[i] = 0;
        for (int i = 0; i < n; i++) {
            int y; cin >> y;
            if (0  <= y && y <=  9) ys[0]++;
            if (10 <= y && y <= 19) ys[1]++;
            if (20 <= y && y <= 29) ys[2]++;
            if (30 <= y && y <= 39) ys[3]++;
            if (40 <= y && y <= 49) ys[4]++;
            if (50 <= y && y <= 59) ys[5]++;
            if (60 <= y)            ys[6]++;
        }
        for (int i = 0; i < 7; i++) {
            cout << ys[i] << endl;
        }
    }
    return 0;
}