#include <cstdio>
#include <cstring>
#include <algorithm>
#include <string>
#include <cmath>
#include <stack>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <list>
#include <iostream>
#include <sstream>
#include <climits>
#include <cfloat>
#include <complex>

using namespace std;

int main()
{
	int n;
	int sec[] = { 10, 20, 30, 40, 50, 60, 99 };
	while (scanf("%d", &n), n)
	{
		int v[100];
		memset(v, 0, sizeof(v));
		while (n--)
		{
			int t;
			scanf("%d", &t);
			++v[t];
		}
		int s = 0;
		for (int i = 0, j = 0; i < 100; ++i)
		{
			if (i == sec[j])
			{
				printf("%d\n", s);
				s = 0;
				++j;
			}
			else
				s += v[i];
		}
	}

	return 0;
}