#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)

int main(){
	int n;
	while(cin >> n , n){
		int d[7] = {0};
		rep(i,n){
			int age;
			cin >> age;
			if(age>60)age = 60;
			d[age/10]++;
		}
		rep(i,7){
			cout << d[i] << endl;
		}
	}
}