#include<cstdio>
#include<algorithm>
using namespace std;
int main()
{
	int n,a[7],c;
	while(scanf("%d",&n),n)
	{
		fill(a,a+7,0);
		while(n--)scanf("%d",&c),a[min(c/10,6)]++;
		for(c=0;c<7;++c)printf("%d\n",a[c]);
	}
	return 0;
}