#include <cstdio>

int main(void)
{
	int n;
	
	while (scanf("%d", &n)){
		if (n == 0) break;
		int a[7] = {0}, tmp;
		for (int i = 0; i < n; i++){
			scanf("%d", &tmp);
			if (0 <= tmp && tmp < 10) a[0]++;
			else if (10 <= tmp && tmp < 20) a[1]++;
			else if (20 <= tmp && tmp < 30) a[2]++;
			else if (30 <= tmp && tmp < 40) a[3]++;
			else if (40 <= tmp && tmp < 50) a[4]++;
			else if (50 <= tmp && tmp < 60) a[5]++;
			else if (60 <= tmp) a[6]++;
		}
		for (int i = 0; i < 7; i++){
			printf("%d\n", a[i]);
		}
	}
	
	return (0);
}