#include <iostream>
using namespace std;
int main(){
	const double B[]={165.0,170.0,175.0,180.0,185.0};
	int n;
	int count[6]={0};
	cin>>n;
	for(int i=0;i<n;++i){
		double height;
		cin>>height;
		if(height>=B[4])count[5]++;
		else for(int j=0;j<5;++j){
			if(height<B[j]){
				count[j]++;
				break;
			}
		}
	}
	for(int i=0;i<6;++i){
		cout<<i+1<<":";
		for(int j=0;j<count[i];++j)cout<<"*";
		cout<<"\n";
	}
}