#include<iostream>
#include<algorithm>
using namespace std;

int main(){

	int n, old[7], x;
	
	while(cin >> n){
		if(n == 0) break;
		fill(old, old+7, 0);
		
		for(int i=0; i<n; i++){
			cin >> x;
			if(x >= 60) old[6]++;
			else old[(x - x % 10) / 10]++;
		}
		
		for(int i=0; i<7; i++){
			cout << old[i] << endl;
		}
		
	}

	return 0;

}