#include <iostream>
using namespace std;

int main(){
    int n;
    while( cin >> n , n ){
        int a[7] = {0}, age;

        for(int i=0 ; i < n ; i++ ){
            cin >> age;
            if( age >= 60 ) 
                age = 60;
            a[age/10]++;
        }
        for(int i=0 ; i < 7 ; i++ ){
            cout << a[i] << endl;
        }
    }
}