#include<iostream>
#include<cstdio>
#include<algorithm>
#include<string>
#include<cstring>
using namespace std;
int main(){

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

	return 0;
}