#include<cstdio>
#include<iostream>
#include<algorithm>

using namespace std;

void Euclidean(long long a,long long b,long long n){
	if(b!=0) Euclidean(b,a%b,n+1);
	else cout<<a<<" "<<n<<endl;
	return;
}

int main(void){

	int people[7];
	int n;
	int inp;

	while(1){
		for(int i=0;i<7;i++) people[i]=0;
		cin>>n;
		if(n==0) break;
		for(int i=0;i<n;i++){
			cin>>inp;
			if(inp<60) people[inp/10]++;
			else people[6]++;
		}
		for(int i=0;i<7;i++) cout<<people[i]<<endl;
	}

    return 0;
}