#include <iostream>

using namespace std;

void solve()
{
	int n;
	cin >> n;
	int index[6] = {0};
	while(n--)
	{
		double height;
		cin >> height;
		if(height < 165)
		{
			++index[0];
		}
		else if(height < 170)
		{
			++index[1];
		}
		else if(height < 175)
		{
			++index[2];
		}
		else if(height < 180)
		{
			++index[3];
		}
		else if(height < 185)
		{
			++index[4];
		}
		else
		{
			++index[5];
		}
	}
	cout << "1:";
	for(int i = 0; i < index[0]; ++i)
	{
		cout << "*";
	}
	cout << endl;
	cout << "2:";
	for(int i = 0; i < index[1]; ++i)
	{
		cout << "*";
	}
	cout << endl;
	cout << "3:";
	for(int i = 0; i < index[2]; ++i)
	{
		cout << "*";
	}
	cout << endl;
	cout << "4:";
	for(int i = 0; i < index[3]; ++i)
	{
		cout << "*";
	}
	cout << endl;
	cout << "5:";
	for(int i = 0; i < index[4]; ++i)
	{
		cout << "*";
	}
	cout << endl;
	cout << "6:";
	for(int i = 0; i < index[5]; ++i)
	{
		cout << "*";
	}
	cout << endl;
}

int main()
{
	solve();
	return(0);
}