#include <iostream>
#include <vector>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <cstdlib>

using namespace std;

int main(){
	int n;cin>>n;
	int histgram[6];
	memset(histgram,0,sizeof(histgram));
	for(int i = 0; i < n; i++){
		double t;
		cin>>t;
		if(t<165){
			histgram[0]++;
		}
		else if(t>=185){
			histgram[5]++;
		}
		else{
			t-=165;
			histgram[(int)(t/5)+1]++;
		}
	}
	for(int i = 0; i < 6; i++){
		cout<<i+1<<":";
		for(int j = 0; j < histgram[i]; j++){
			cout<<"*";
		}
		cout<<endl;
	}

	return 0;
}