#include <iostream>
using namespace std;

int main(void) {
  int n, tmp;
  while (1) {
    cin >> n;
    if (n == 0) break;

    int age[7] = {0};
    while (n--) {
      cin >> tmp;
      if (tmp >= 60) {
	age[6]++;
      } else {
	age[tmp/10]++;
      }
    }

    for (int i = 0; i < 7; i++) {
      cout << age[i] << endl;
    }
  }
  return 0;
}