#include <iostream>
using namespace std;

int main()
{
	int n;

	while(true){
		int x,x0=0,x10=0,x20=0,x30=0,x40=0,x50=0,x60=0;
		cin >> n;

		if(n==0)
			break;

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

			if(0<=x && 10>x)
				x0++;
			else if(10<=x && 20>x)
				x10++;
			else if(20<=x && 30>x)
				x20++;
			else if(30<=x && 40>x)
				x30++;
			else if(40<=x && 50>x)
				x40++;
			else if(50<=x && 60>x)
				x50++;
			else if(60<=x)
				x60++;
		}

		cout << x0 << endl;
		cout << x10 << endl;
		cout << x20 << endl;
		cout << x30 << endl;
		cout << x40 << endl;
		cout << x50 << endl;
		cout << x60 << endl;
	}

	return 0;
}