#include <iostream>
#include <algorithm>
#include <math.h>
#include <cmath>
#include <stdio.h>
#include <string>
#include <string.h>
#include <cstring>
#include <sstream>
#include <iomanip>
#include <stdlib.h>

using namespace std;

int main (void)
{
	for (int u = 0; u < 100; u++)
	{
	long n;
	cin >> n;
	int a[10000],pp = 0;

	for (long i = 0; i < n; i++)
	{
		cin >> a[i];
		if (a[i] == 0)
		{
			pp = -1;
		}
	}
	
	if (pp != 0)
	{
		break;
	}

	int o = 0,p = 0,q = 0,r = 0,s = 0,t = 0,u = 0;

	for (long i = 0; i < n; i++)
	{
		if (a[i] < 10)
		{
			o++;
		}
		else if (a[i] < 20)
		{
			p++;
		}
		else if (a[i] < 30)
		{
			q++;
		}
		else if (a[i] < 40)
		{
			r++;
		}
		else if (a[i] < 50)
		{
			t++;
		}
		else
		{
			u++;
		}

		cout << o << endl << p << endl << q << endl << r << endl << s << endl << t << endl << u << endl ;
	}
	}
}
