#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <cstring>
#include <string>
#include <sstream>
#include <algorithm>
#include <iomanip>
using namespace std;

const int INF = 1e9;
typedef long long ll;

int main(void){
  int n;
  while(cin >> n && n != 0){
    int data[7] = {0, 0, 0, 0, 0, 0, 0}, o;
    for(int i = 0; i < n; i++){
      cin >> o;
      if(o < 60)data[o / 10]++;
      else data[6]++;
    }
    for(int i = 0; i < 7; i++){
      cout << data[i] << endl;
    }
  }
  return 0;
}