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

int main( void )
{
	int n;
	while ( cin >> n && n )
	{
		vector <int> list( 7, 0 );

		int age;
		for ( int i = 0; i < n; i++ )
		{
			cin >> age;
			for ( int i = 1; i < 7; i++ )
			{
				if ( age < 10*i )
				{
					list[i-1]++;
					break;
				}
			}
			if ( age >= 60 )
				list[6]++;
		}

		for ( int i = 0; i < 7; i++ )
			cout << list[i] << endl;

	}
	return 0;
}