#include <iostream>
using namespace std;
int main(void){
#define MAX 1001000
    int n; //来場者数
    int a[MAX]; //来場者の年齢

    while(true){
        cin >> n;
        if(n == 0) break;

        for(int i = 0; i < n; i++)
            cin >> a[i];
        
        int c0 = 0, c1 = 0, c2 = 0, c3 = 0, c4 = 0, c5 = 0, c6 = 0;
        //10代未満の人数、10代の人数、20代の人数、30代の人数、40代の人数、50代の人数、60歳以上の人数
        for(int i = 0; i < n; i++){
            if(a[i] < 10) 
                c0++;
            else if(10 <= a[i] && a[i] < 20)
                c1++;
            else if(20 <= a[i] && a[i] < 30)
                c2++;
            else if(30 <= a[i] && a[i] < 40)
                c3++;
            else if(40 <= a[i] && a[i] < 50)
                c4++;
            else if(50 <= a[i] && a[i] < 60)
                c5++;
            else
                c6++;
        }
        cout << c0 << endl;
        cout << c1 << endl;
        cout << c2 << endl;
        cout << c3 << endl;
        cout << c4 << endl;
        cout << c5 << endl;
        cout << c6 << endl;
    }
}
