#include <bits/stdc++.h>
using namespace std;
int main(){

    int n;
    while(1){
        scanf("%d",&n);
        if(n == 0) break;
        int age[10] = {0};
        for(int i = 0; i < n; i++){
            int x;
            scanf("%d",&x);
            if(x < 10) age[0]++;
            if(x >= 10 && x < 20) age[1]++;
            if(x >= 20 && x < 30) age[2]++;
            if(x >= 30 && x < 40) age[3]++;
            if(x >= 40 && x < 50) age[4]++;
            if(x >= 50 && x < 60) age[5]++;
            if(x >= 60) age[6]++;
        }
        for(int i = 0; i < 7; i++){
            printf("%d\n",age[i]);
        }
    }

    return 0;
}