#include<iostream>
#include<vector>
#include<algorithm>

using namespace std;

int main()
{
	int n;
	vector<double> vTalls;

	cin >> n;
	if(n == 0)
		return 0;

	for(int i = 0; i < n; ++i)
	{
		double t;
		cin >> t;
		vTalls.push_back( t );
	}

	sort( vTalls.begin(), vTalls.end() );

	for(int i = 0, h = 1; i < n && h <= 6; ++h)
	{
		const double ranks[] = {0.0,165.0,170.0,175.0,180.0,185.0};
		cout<<h<<":";
		for(int j = i; j < n; ++j)
		{
			if( vTalls[j] < ranks[h] )
				cout<<"*";
			else
			{
				i = j;
				break;
			}
		}
		if( h == 6 )
		{
			for(int j = i; j < n; ++j)cout<<"*";
		}
		cout<<'\n';
	}
	return 0;
}