#include<bits/stdc++.h>
#define range(i,a,b) for(int i = (a); i < (b); i++)
#define rep(i,b) range(i,0,b)
#define itrep(it, a) for(it = (a).begin(); it != (a).end(); it++)
#define all(a) (a).begin(), (a).end()
#define debug(x) cout << "debug " << x << endl;
#define INF (1 << 30)
using namespace std;

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