#include<iostream>
using namespace std;
int main() {
	int n;
	while (cin >> n){
		if (n == 0)return 0;
		int a = 0;
		int b = 0;
		int c = 0;
		int d = 0;
		int e = 0;
		int f = 0;
		int g = 0;
		for (int i = 0; i < n; i++){
			int q; cin >> q;
			if (q < 10)a++;
			else if (q < 20)b++;
			else if (q < 30)c++;
			else if (q < 40)d++;
			else if (q < 50)e++;
			else if (q < 60)f++;
			else g++;
		}
		cout << a << endl << b << endl << c << endl << d;
		cout << endl << e << endl << f << endl << g << endl;
	}
}