#include<iostream>
#define MAX 1000000
using namespace std;
int main(){
	int count=0;
	int n,p;
	int age[MAX][7];
	while(cin >> n){
		if(n == 0) break;
		for(int i=0; i<7; i++) age[count][i]=0;
		for(int i=0; i<n; i++){
			cin >> p;
			if(p < 10)
				age[count][0]++;
			if(p > 10 && p < 20)
				age[count][1]++;
			if(p > 20 && p < 30)
				age[count][2]++;
			if(p > 30 && p < 40)
				age[count][3]++;
			if(p > 40 && p < 50)
				age[count][4]++;
			if(p > 50 && p < 60)
				age[count][5]++;
			if(p >= 60)
				age[count][6]++;
		}
	count++;
	}
	for(int i=0; i<count; i++){
		for(int j=0; j<7; j++)
			cout << age[count][j] << endl;
	}
	return 0;
}