#include <iostream>
#include <vector>
using namespace std;

const double s[5] = { 165.0, 170.0, 175.0, 180.0, 185.0 };

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

	vector <int> list(6,0);
	for ( int i = 0; i < n; i++ )
	{
		double h;
		cin >> h;

		int j;
		for ( j = 0; j < 5; j++ )
		{
			if ( h < s[j] )
				break;
		}

		list[j]++;
	}

	for ( int i = 0; i < 6; i++ )
	{
		cout << i+1 << ":";
		for ( int j = 0; j < list[i]; j++ )
			cout << '*';
		cout << endl;
	}

	return 0;
}