#include <iostream>
using namespace std;
#define rep2(x,from,to) for(int x=(from);x<(to);++(x))
#define rep(x,to) rep2(x,0,to)
int main(){
	int n, a;
	while(cin >> n, n) {
		int ret[7] = {};
		rep(i,n) {
			cin >> a;
			ret[a/10 >= 7 ? 6 : a/10]++;	
		}
		rep(i,7) {
			cout << ret[i] << endl;
		}
	}
	return 0;
}