#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using pii = pair<int, int>;

int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  
  int n;
  while (cin >> n, n) {
    int cnt[7] = {};
    for (int i = 0; i < n; i++) {
      int a;
      cin >> a;
      if (a >= 60) cnt[6]++;
      else cnt[a / 10]++;
    }
    for (int i = 0; i < 7; i++) {
      cout << cnt[i] << endl;
    }
  }

  return 0;
}
