#include <iostream>
using namespace std;
int main(){
	int n;
	while(cin>>n){
		if(n==0)break;
		const int B[]={0,10,20,30,40,50,60};
		int count[7]={0};
		for(int i=0,age;i<n;++i){
			cin>>age;
			for(int j=6;j>-1;--j) if(B[j]<=age){++count[j];break;}
		}
		for(int i=0;i<7;++i)cout<<count[i]<<"\n";
	}
	return 0;
}