#include <bits/stdc++.h>

using namespace std;

int main()
{
  int n;
  while(1){
    scanf("%d", &n);
    if(n == 0) break;
    int pep[7] = {0};
    for(int i = 0; i < n; i++){
      int old;
      scanf("%d", &old);
      pep[(old >= 60 ? 6 : old / 10)]++;
    }
    for(int i = 0; i < 7; i++){
      printf("%d\n", pep[i]);
    }
  }
}