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

int main(void)
{
  int num;
  int year;
  int old_num[7];

  while(1)
    {
      cin >> num;
      if(num == 0) break;
      for(int i = 0 ; i < 7 ; i++)
	{
	  old_num[i] = 0;
	}

      for(int i = 0 ; i < num ; i++)
	{
	  cin >> year;
	  if(year < 10) old_num[0]++;
	  else if(year < 20) old_num[1]++;
	  else if(year < 30) old_num[2]++;
	  else if(year < 40) old_num[3]++;
	  else if(year < 50) old_num[4]++;
	  else if(year < 60) old_num[5]++;
	  else old_num[6]++;
	}
      for(int i = 0 ; i < 7 ; i++)
	{
	  cout << old_num[i] << endl;
	}
    }
  return 0;
}