#include <iostream>
using namespace std;

int main() {
  int n,age,a[7] = {};
  while(cin >> n) {
    if(n == 0) break;
    int a[7] = {};
    for(int i=0;i<n;i++) {
      cin >> age;
      age/=10;
      if(age <= 5) {
      a[age]++;
      }
      else {
        a[6]++;
      }
    }

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