#include<iostream>
#include<cstdio>
using namespace std;
int main(void){
  int n,d,layer[10]={0};
  while(cin>>n,n!=0){
    for(int i=0;i<n;i++){
      cin>>d;
      layer[d/10]++;
      if(6<d/10)layer[6]++;
    }
    for(int i=0;i<7;i++){
      cout<<layer[i]<<endl;
      layer[i]=0;
    }
  }
}