#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <complex>
#include <cstring>
#include <cstdlib>
#include <string>
#include <cmath>
#include <queue>
using namespace std;

#define REP(i,n) for(int i=0;i<(int)n;++i)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i)
#define ALL(c) (c).begin(), (c).end()
#define INF 1<<30

int main() {
  int n;
  while(cin >> n, n) {
    int table[7] = {0};
    REP(i,n) {
      int a;
      cin >> a;
      if (a < 60) {
        table[a/10]++;
      } else
        table[6]++;
    }
    REP(i,7)
      cout << table[i] << endl;
  }
}