#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;

int num[7];
int main(void){
	while(1){
		int n;
		scanf("%d",&n);
		if(n==0)break;
		memset(num,0,sizeof(num));
		for(int i=0;i<n;i++){
			int a;
			scanf("%d",&a);
			if(a>60)a=60;
			num[a/10]++;
		}
		for(int i=0;i<=6;i++)printf("%d\n",num[i]);
	}
    return 0;
}