#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>


typedef long long ll;
const double Eps = 1e-6;

using namespace std;

int main()
{
	int n;
	scanf("%d", &n);
	int rank[6];
	memset(rank, 0, sizeof(rank));
	while (n--)
	{
		double tall;
		scanf("%lf", &tall);
		int i;
		for (i = 0; i < 5 && tall >= 165.0+5*i; ++i)
			;
		++rank[i];
	}
	for (int i = 0; i < 6; ++i)
	{
		printf("%d:", i+1);
		for (int j = 0; j < rank[i]; ++j)
			putchar('*');
		printf("\n");
	}

	return 0;
}