#include <stdio.h>

int main(void)
{
	int n;
	int i;
	double height[40];
	int count_1=0,count_2=0,count_3=0,count_4=0,count_5=0,count_6=0;
	
	scanf("%d",&n);
	
	for(i=0;i<n;i++)
	{
		scanf("%lf",&height[i]);
	}
	
	for(i=0;i<n;i++)
	{
		if(height[i] < 165.0)
		{
			count_1++;
		}
		else if(height[i] >= 165.0 && 170.0 > height[i])
		{
			count_2++;
		}
		else if(height[i] >= 170.0 && 175.0 > height[i])
		{
			count_3++;
		}
		else if(height[i] >= 175.0 && 180.0 > height[i])
		{
			count_4++;
		}
		else if(height[i] >= 180.0 && 185.0 > height[i])
		{
			count_5++;
		}
		else if(185.0 <= height[i])
		{
			count_6++;
		}
	}
	
	printf("1:");
	for(i=0;i<count_1;i++)
	{
		printf("*");
	}
	printf("\n");
	printf("2:");
	for(i=0;i<count_2;i++)
	{
		printf("*");
	}
	printf("\n");
	printf("3:");
	for(i=0;i<count_3;i++)
	{
		printf("*");
	}
	printf("\n");
	printf("4:");
	for(i=0;i<count_4;i++)
	{
		printf("*");
	}
	printf("\n");
	printf("5:");
	for(i=0;i<count_5;i++)
	{
		printf("*");
	}
	printf("\n");
	printf("6:");
	for(i=0;i<count_6;i++)
	{
		printf("*");
	}
	printf("\n");
	
	return 0;
}