#include <iostream>
#include <stdio.h>
using namespace std;
int main(){
	int n,hist[6]={0};
	double height;
	
	cin>>n;
	for(int i=0;i<n;i++){
		cin>>height;
		if(height<165.0) hist[0]++;
		else if(height>=165.0 && height<170.0) hist[1]++;
		else if(height>=170.0 && height<175.0) hist[2]++;
		else if(height>=175.0 && height<180.0) hist[3]++;
		else if(height>=180.0 && height<185.0) hist[4]++;
		else if(height>=185.0) hist[5]++;
	}
	for(int i=0;i<6;i++){
		cout<<i+1<<":";
		for(int j=0;j<hist[i];j++){
			cout<<"*";
		}
		cout<<endl;
	}

	return 0;
}