#include<stdio.h>

int main(void)
{
	int dataset = 0;
	int age;
	int i;
	int s;
	int pnum[7] = {0};
	int n;
	while(1){
	scanf("%d",&dataset);
	if(n == 0)break;
	for(i = 0;i < dataset;i++)
	{
		scanf("%d",&age);
		if(age >= 70)
		{
			age = 60;
		}
		s = (age / 10);
		pnum[s]++;
	}
	for(i = 0;i < 7;i++)
	{
		printf("%d\n",pnum[i]);
	}
}

	return 0;
}