
#include<iostream>
#include<vector>
using namespace std;

int main()
{
  vector<int> v(7);
  int n, i;
  while (cin>>n, n) {
    fill(v.begin(), v.end(), 0);
    for (i = n; i > 0; i--) {
      cin>>n;
      if (n>60) n = 60;
      v[n/10]++;
    }
    for (i = 0; i < 7; i++) cout<<v[i]<<endl;
  }

  return 0;
}