#include <iostream>
#include <numeric>
using namespace std;

int main() {
    int n;

    while (cin >> n, n) {
        int g[20] = {0};
        while (n--) {
            int age;
            cin >> age;
            g[age / 10]++;
        }
        for (int i = 0; i <= 5; i++) {
            cout << g[i] << endl;
        }
        cout << accumulate(&g[6], g+20, 0) << endl;
    }
    return 0;
}