#include<iostream>

using namespace std;

int main() {
	
	int n;
	
	while(cin >> n) {
	
	int A[7] = {0};
	
	if( n == 0)
	break;
	
	for(int i=0;i<n;i++) {
		
		int age;
		
		cin >> age;
		
		if( age >= 60)
		A[6]++;
		
		else
		A[age/10]++;
	}
	for(int i=0;i<7;i++)
	cout << A[i] << "\n";
	
}
	return 0;
}
