#include<iostream>
using namespace std;
int a[7]; int n, p;
int main() {
	while (true) {
		cin >> n;
		if (n == 0) { break; }
		for (int i = 0; i < n; i++) {
			cin >> p;
			p /= 10;
			if (p > 6) { p = 6; }
			a[p]++;
		}
		for (int i = 0; i < 7; i++) {
			cout << a[i] << endl;
		}
	}
}