#include<iostream>
using namespace std;
int main() {
	int n;
	while (cin >> n&&n != 0) {
		int y[7], x[6] = { 9,19,29,39,49,59};
		fill(y, y + 7, 0);
		for (int i = 0; i < n; i++) {
			int a;
			cin >> a;
			bool b = false;
			for (int j = 0; j < 6; j++) {
				if (a <= x[j]) {
					y[j]++;
					b = true;
					break;
				}
			}
			if (!b) y[6]++;
		}
		for (int i = 0; i < 7; i++) {
			cout << y[i] << endl;
		}
	}
}