#include <iostream>

using namespace std;

int main(int argc, char **argv)
{
	int n, tmp, *array;
	
	while(1){
		cin >> n;
		if(n == 0){
			break;
		}
		array = (int *)calloc(7, sizeof(int));
		for(int i = 0; i < n; i++){
			cin >> tmp;
			
			if(tmp > 60){
			tmp = 60;
			}
			array[tmp/10]++;
		}
		for(int i = 0; i < 7; i++){
			cout << array[i] << endl;
		}
		
		free(array);
	}
	
	return 0;
}