#include <iostream>
#include <cstdio>


using namespace std;

int main(void)
{
	int num;
	cin >> num;

	int p1 = 0, p2 = 0, p3 = 0, p4 = 0, p5 = 0, p6 = 0;
	float tmp;

	for (int i = 0; i < num; i++)
	{
		cin >> tmp;

		if (tmp < 165.0)
			p1++;
		else if (165.0 <= tmp < 170.0)
			p2++;
		else if (170.0 <= tmp < 175.0)
			p3++;
		else if (175.0 <= tmp < 180.0)
			p4++;
		else if (180.0 <= tmp < 185.0)
			p5++;
		else
			p6++;

	}

	cout << "1:";
	for (int i = 0; i < p1; i++)
		cout << "*";
	cout << endl;

	cout << "2:";
	for (int i = 0; i < p2; i++)
		cout << "*";
	cout << endl;

	cout << "3:";
	for (int i = 0; i < p3; i++)
		cout << "*";
	cout << endl;

	cout << "4:";
	for (int i = 0; i < p4; i++)
		cout << "*";
	cout << endl;

	cout << "5:";
	for (int i = 0; i < p5; i++)
		cout << "*";
	cout << endl;

	cout << "6:";
	for (int i = 0; i < p6; i++)
		cout << "*";
	cout << endl;


}