#include <iostream>

int getIndex(int age)
{
	if (age<10) return 0;
	else if (age<20) return 1;
	else if (age<30) return 2;
	else if (age<40) return 3;
	else if (age<50) return 4;
	else if (age<60) return 5;
	else return 6;
}

int main()
{
	int n;
	while (true) {
		std::cin >> n;
		if (n == 0) break;
		int a[7] = {0,0,0,0,0,0,0};
		for (int i=0; i<n; i++) {
			int age;
			std::cin >> age;
			a[getIndex(age)]++;
		}
		for (int i=0; i<7; i++) std::cout << a[i] << std::endl;
	}
	return 0;
}

