#include <stdio.h>

int main(void)
{
	double student;
	int count[6];
	int n, i;
	
	for (i = 0; i < 6; i++){
		count[i] = 0;
	}
	
	scanf("%d", &n);
	
	for (i = 0; i < n; i++){
		scanf("%lf", &student);
		if (student < 165.0){
			count[0]++;
		}
		else if (student < 170.0){
			count[1]++;
		}
		else if (student < 175.0){
			count[2]++;
		}
		else if (student < 180.0){
			count[3]++;
		}
		else if (student < 185.0){
			count[4]++;
		}
		else {
			count[5]++;
			printf("%d", count[6]);
		}
	}
	
	for (i = 1; i <= 6; i++){
		printf("%d:", i);
		while (count[i - 1] != 0){
			printf("*");
			count[i - 1]--;
		}
		printf("\n");
	}
	
	return (0);
	
}