#include <cstdio>
using namespace std;

int main() {
    int n, age;
    while (scanf("%d",&n), n) {
        int num[7] = {};
        for (int i=0; i<n; ++i) {
            scanf("%d",&age);
            if (60 <= age) ++ num[6];
            else ++ num[age/10];
        }
        for (int i=0; i<7; ++i) {
            printf("%d\n", num[i]);
        }
    }
    return 0;
}