#include <iostream>
#include <cstdio>
#include <string>
#include <sstream>
#include <algorithm>
#include <math.h>
//#include <map>
#include <vector>

using namespace std;



int main()
{
	int n;
	int bunpu[6];
	double sintyou;
	
	for (int i=0; i<6; i++) bunpu[i] = 0;
	cin >> n;
	for (int i=0; i<n; i++)
	{
		cin >> sintyou;
		if (sintyou < 165.0)
		{
			bunpu[0]++;
		} else if (165.0 <= sintyou && sintyou < 170.0) {
			bunpu[1]++;
		} else if (170.0 <= sintyou && sintyou < 175.0) {
			bunpu[2]++;
		} else if (175.0 <= sintyou && sintyou < 180.0) {
			bunpu[3]++;
		} else if (180.0 <= sintyou && sintyou < 185.0) {
			bunpu[4]++;
		} else if (185.0 <= sintyou) {
			bunpu[5]++;
		}
	}
	for (int i=0; i<6; i++)
	{
		cout << i + 1 << ":";
		for (int j=0; j<bunpu[i]; j++)
		{
			cout << "*";
		}
		cout << endl;
	}
	
	return 0;
}