#include <iostream>
#include <cstring>

//ツ年ツ療ョツつゥツづァツイツδ督デツッツクツスツづーツ仰づ淞づゥツ．
int solve(int old){
	if(old < 10){
		return 0;
	}
	else if(old < 20){
		return 1;
	}
	else if(old < 30){
		return 2;
	}
	else if(old < 40){
		return 3;
	}
	else if(old < 50){
		return 4;
	}
	else if(old < 60){
		return 5;
	}
	else{
		return 6;
	}
}

int main(){
	int n, l[7] = {0};
	while(std::cin >> n, n){
		//init
		memset(l, 0, sizeof(l));

		//input
		while(n--){
			int o;
			std::cin >> o;
			l[solve(o)]++;
		}
		
		//output
		for(int i=0;i<7;i++){
			std::cout << l[i] << std::endl;
		}
	}
}