#include<iostream>
using namespace std;
int main(){
  while(true){
    int n;
    int ages[7]={0,};
    cin >> n;
    if( n==0 )break;
    for(int i = 0; i < n; ++i){
      int age; cin >> age; if(age>=70)age=60;ages[age/10]++;
    }
    for(int i = 0; i < 7; ++i){
      cout << ages[i] << endl;
    }
  }
  return 0;
}