#include <iostream>
using namespace std;

int main(){
    int n;
    while(cin >> n, n){
        int age, count[7] = {0, 0, 0, 0, 0, 0, 0};
        while( n-- > 0 ){
            cin >> age;
            if( age <= 60 ) count[age/10]++;
            else count[6]++;
        }
        for(int i = 0; i < 7; i++){
            cout << count[i] << endl;
        }
    }
    return 0;
}