#include<iostream>
#include<cstring>

int cnt[7];

int main()
{
	int n;
	while( std::cin >> n, n )
	{
		memset( cnt, 0, sizeof( cnt ) );

		while( n-- )
		{
			int age;
			std::cin >> age;

			for( int i = 0; i != 7; ++i )
			{
				if( !i && age < 10 )
					++cnt[i];
				else if( i == 6 && age >= 60 )
					++cnt[i];
				else if( i * 10 <= age && age < ( i + 1 ) * 10 )
					++cnt[i];
			}
		}

		for( int i = 0; i != 7; ++i )
				std::cout << cnt[i] << std::endl;
	}
	
	return 0;
}