#include <iostream>
using namespace std;


int main(void){
  int cnt[7], n;
  
  while (cin >> n){
    if (n==0) break;
    int age;
    for (int i=0; i<7; i++) cnt[i] = 0;
    for (int i=0; i<n; i++){
      cin >> age;
      age/=10;
      cnt[age<6?age:6]++;
    }
    for (int i=0; i<7; i++) cout << cnt[i] << endl;
  }
  return 0;
}
  
  

