#include<iostream>
using namespace std;


class Solver
{
private:
	int n;
	int customer[130] = {};
	bool Input()
	{
		cin >> n;
		if (n == 0)return false;
		for (int i = 0; i < n; i++)
		{
			int a;
			cin >> a;
			customer[a]++;
		}
		return true;
	}
	//[min,max]
	int NumOfCustomers(int min, int max)
	{
		int num = 0;
		for (int i = min; i <= max; i++)
		{
			num += customer[i];
		}
		return num;
	}

	void Output()
	{
		for (int i = 0; i <= 5; i++)
		{
			cout << NumOfCustomers(10 * i, 10 * i + 9) << endl;
		}
		cout << NumOfCustomers(60,120) << endl;
	}

public:
	bool Solve()
	{
		if (Input())
		{
			Output();
			return true;
		}
		else return false;
	}
};

int main()
{
	while(Solver().Solve());
}

