#include <iostream>
using namespace std;

int main()
{
	int n;
	int x;
	


	while(true){

		int a0=0 ,a10=0 ,a20=0 ,a30=0 ,a40=0 ,a50=0 ,a60=0;

		cin >> n;
		
		if(n==0)
			break;

		for(int i=0 ;i<n ;i++){

			cin >> x;

			if(x>=0 && x<10)
				a0++;
			else if(x>=10 && x<20)
				a10++;
			else if(x>=20 && x<30)
				a20++;
			else if(x>=30 && x<40)
				a30++;
			else if(x>=40 && x<50)
				a40++;
			else if(x>=50 && x<60)
				a50++;
			else if(x>=60)
				a60++;

		}

		cout << a0 << endl;
		cout << a10 << endl;
		cout << a20 << endl;
		cout << a30 << endl;
		cout << a40 << endl;
		cout << a50 << endl;
		cout << a60 << endl;

	}
	
	return 0;

}