#include<iostream>
#include<vector>
#include<string>
using namespace std;

int main()
{
	while (1) {
		int a;
		cin >> a;
		if (a == 0)break;
		vector<int>s(7);
		for (int b = 0; b < a; b++)
		{
			string c;
			cin >> c;
			if (c.length() == 1) { s[0]++; continue; }
			if (c[0] > 53) { s[6]++; continue; }
			if (c.length() == 3) { s[6]++; continue; }
			s[c[0] - 48]++;
		}
		for (int k : s)
			cout << k << endl;
	}
}