#include<iostream>
#include<cstring>
#include<algorithm>
#include<vector>
#include<cstdio>
#include<cmath>
#define pb(in,tmp) in.push_back(tmp)
#define loop(i,a,b) for(int i=a;i<b;i++)
#define rep(i,b) loop(i,0,b)
#define all(in) in.begin(),in.end()
using namespace std;
int main(){
int a[7]={60,50,40,30,20,10,0};
int in;
while(cin>>in,in){
int b[7]={0};
rep(i,in){
int in1;
cin>>in1;
rep(j,7){
if(a[j]<=in1){b[6-j]++;break;}
}
}
rep(i,7)cout<<b[i]<<endl;
}
}