#include<iostream>
using namespace std;
int main(){
  
  int n,old[7],in;


  while(1){
    
    for(int i=0 ; i < 7 ; i++)old[i]=0;
    
    cin >>n;
    
    if(n == 0)break;
    
    
    for(int i=0 ; i < n ; i++){
      cin >>in;
      
      if(in >= 0 && in <= 9){
	old[0]++;
      }else if(in >= 10 && in <=19){
	old[1]++;
      }else if(in >= 20 && in <=29){
	old[2]++;
      }else if(in >= 30 && in <=39){
      old[3]++;		   
      }else if(in >= 40 && in <=49){
	old[4]++;
      }else if(in >= 50 && in <=59){
	old[5]++;
      }else{
	old[6]++;
      }
      
    }
    
    for(int i=0 ; i < 7 ; i++){
      cout <<old[i]<<endl;
    }
    
  }
  
  return 0;
}