#include <bits/stdc++.h>

using namespace std;

int Result[7];

int main() {
	int n, age;

	while (cin >> n, n) {
		memset(Result, 0, sizeof(Result));

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

			age /= 10;
			if (age > 6) {
				age = 6;
			}
			Result[age]++;
		}

		for (int i = 0; i < 7; i++) {
			cout << Result[i] << endl;
		}
	}
	

	return 0;
}
