#include <iostream>
using namespace std;

int main()
{
  int n;
  while (cin >> n && n != 0){
    int a[7] = {0};
    while (n--){
      int age;
      cin >> age;
      if (age > 60){
        a[6]++;
        continue;
      }

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