#include <bits/stdc++.h>
using namespace std;
int main(void){
    int n,a,count1,count10,count20,count30,count40,count50,count60;
    count1=0;
    count10=0;
    count20=0;
    count30=0;
    count40=0;
    count50=0;
    count60=0;
    while (cin>>n) {
        if (n==0) {
            break;
        } else {
            for (int i=0;i<n;i++) {
                cin>>a;
                if (a<10) {
                    count1++;
                } else if (a>=10&&a<20) {
                    count10++;
                } else if (a>=20&&a<30) {
                    count20++;
                } else if (a>=30&&a<40) {
                    count30++;
                } else if (a>=40&&a<50) {
                    count40++;
                } else if (a>=50&&a<60) {
                    count50++;
                } else if (a>=60) {
                    count60++;
                }
            }
        }
        cout<<count1<<endl;
        cout<<count10<<endl;
        cout<<count20<<endl;
        cout<<count30<<endl;
        cout<<count40<<endl;
        cout<<count50<<endl;
        cout<<count60<<endl;
        count1=0;
        count10=0;
        count20=0;
        count30=0;
        count40=0;
        count50=0;
        count60=0;
    }
}

