#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int main()
{
	const int range[] = { 0, 10, 20, 30, 40, 50, 60, 1000 };

//	cut here before submit 
//	freopen ("testcase.tsuruga", "r", stdin );
	string str = "";
	int n;

	while (getline (cin, str ) ){
		stringstream ssn(str);
		ssn >> n;
		if (n == 0){
			break;
		} // end if

		vector <int> hist (7, 0 );
		int i,j;
		for (i = 0; i < n; ++i){
			int age;
			getline (cin, str );
			stringstream ss(str);
			ss >> age;
			for (j = 0; j < 7; ++j){
				if (age >= range[j] && age < range[j+1] ){
					++hist[j];
					break;
				} // end if
			} // end for
		} // end for
		for (j = 0; j < 7; ++j){
			cout << hist[j] << endl;
		} // end for
	} // end loop
		
	return 0;
}