#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<cstring>
using namespace std;

#define rep(i,n) for(int i=0;i<n;i++)
#define REP(n) rep(i,n)
#define all(n) n.begin(),n.end()

const int MAX = 7;

int main()
{
    int n;
    while(cin >> n && n)
    {
        int num[MAX] = {};
        int t = 0;

        REP(n)
        {
            cin >> t;
            if(t > 59){ num[6]++; continue;}
            num[t / 10]++;
        }

        REP(MAX) cout << num[i] << endl;
    }
    return 0;
}