#include <iostream>
#include <cstring>
#define rep(i,n) for(int i=0;i<n;i++)

using namespace std;

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

	int a[6];
	memset(a,0,sizeof(a));
	
	rep(i,n)
	{
		double t;
		cin >> t;

		if(t < 165.0) a[0]++;
		else if(t < 170.0) a[1]++;
		else if(t < 175.0) a[2]++;
		else if(t < 180.0) a[3]++;
		else if(t < 185.0) a[4]++;
		else a[5]++;
	}

	rep(i,6)
	{
		cout << i+1 << ":";
		rep(j,a[i])
		{
			cout << "*";
		}
		cout << endl;
	}
	return 0;
}