#include<iostream>
#include<memory.h>
using namespace std;
int main()
{
	int n,m;
	int in[7] = { 0 };
	while (true){
		cin >> m;
		if (m == 0)break;
		memset(in, 0, sizeof(in));
		for (int i = 0; i < m; i++){
			cin >> n;
			if (n < 10)in[0]++;
			else if (n < 20)in[1]++;
			else if (n < 30)in[2]++;
			else if (n < 40)in[3]++;
			else if (n < 50)in[4]++;
			else if (n < 60)in[5]++;
			else in[6]++;
		}
		for (int i = 0; i < 7; i++){
			cout << in[i] << endl;
		}
	}
}