#include <iostream>
using namespace std;

int main() {
    while (true) {
        int n;
        cin >> n;
        if (n == 0) {
            break;
        }
        int ages[7] = {};
        for (int i = 0; i < n; i++) {
            int input;
            cin >> input;
            if (input < 10) {
                ages[0]++;
            } else if (input < 20) {
                ages[1]++;
            } else if (input < 30) {
                ages[2]++;
            } else if (input < 40) {
                ages[3]++;
            } else if (input < 50) {
                ages[4]++;
            } else if (input < 60) {
                ages[5]++;
            } else {
                ages[6]++;
            }
        }
        for (int i = 0; i < 7; i++) {
            cout << ages[i] << endl;
        }
    }
}