#include <iostream>
using namespace std;

int main() {
   int n,a,b[7];
   while (cin >> n && n>0) {
	  for (a=0;a<7;a++) b[a]=0; 
	  for (;n>0;n--) {
		  cin >> a;
		  if (a>59) b[6]++; else b[a/10]++;
	  }
	  for (a=0;a<7;a++) cout << b[a] << endl;
  }  
return 0;
}