#include <iostream>
using namespace std;
int main(void)
{
	int n;
	int date[8] = {0,9,19,29,39,49,59,1000};
	while(cin>>n){
		int freq[7]={0};
		if(!n) break;
		while(n--){
			int year;
			cin >> year;
			for(int i=0;i<7;i++){
				if(date[i]<=year&&year<date[i+1]){
					freq[i]++;
					break;
				}
			}
		}
		for(int i = 0; i < 7; i++){
			cout << freq[i] << endl;
		}
	}
	return 0;
}