#include <iostream>
#include <string.h>
using namespace std;

int n;
int p[7];

int main()
{
	cin >> n;

	while (n) {
		memset(p, 0, sizeof(p));

		for (int i = 0; i < n; i++) {
			int a;
			cin >> a;

			a /= 10;

			if (a > 5)
				p[6]++;
			else
				p[a]++;
		}

		for (int i = 0; i < 7; i++)
			cout << p[i] << endl;

		cin >> n;
	}

	return 0;
}

