#include <cstdio>
#include <string>
#include <algorithm>
using namespace std;
int main() {
    int n, t;
    int arr[7];
    for (; ;) {
        scanf("%d", &n);
        if (n == 0) break;
        fill(arr, arr+7, 0);
        for (int i = 0; i < n; i++) {
            scanf("%d", &t);
            t/=10;
            if (t >= 6) arr[6]++;
            else arr[t]++;
        }
        for (int i = 0; i<= 6; i++) printf("%d\n", arr[i]);

    }
    return 0;
}

