#include<iostream>
using namespace std;

int main()
{
    int n, d, a[13];

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

        for( int i = 0; i < 13; i++ )
            a[i] = 0;

        for( int i = 0; i < n; i++ )
        {
            cin >> d;
            a[d/10]++;
        }

        for( int i = 0; i < 6; i++ )
            cout << a[i] << endl;

        int sum = 0;
        for( int i = 6; i < 13; i++ )
            sum += a[i];
            
        cout << sum << endl;
    }
    return 0;
}

