#include <iostream>
using namespace std;

int main() {
	int n;
	cin >> n;
	double h[40], count1=0, count2=0, count3=0, count4=0, count5=0, count6=0;
	for(int i=0; i<n; i++){
		cin >> h[i];
		if(h[i]<165.0) count1++;
		if(h[i]>=165.0 && h[i]<170.0) count2++;
		if(h[i]>=170.0 && h[i]<175.0) count3++;
		if(h[i]>=175.0 && h[i]<180.0) count4++;
		if(h[i]>=180.0 && h[i]<185.0) count5++;
		if(h[i]>=185.0) count6++;
	}
	cout << "1:";
	for(int a=0; a<count1; a++){
		cout << "*";
	}
	cout << endl;
	cout << "2:";
	for(int b=0; b<count2; b++){
		cout << "*";
	}
	cout << endl;
	cout << "3:";
	for(int c=0; c<count3; c++){
		cout << "*";
	}
	cout << endl;
	cout << "4:";
	for(int d=0; d<count4; d++){
		cout << "*";
	}
	cout << endl;
	cout << "5:";
	for(int e=0; e<count5; e++){
		cout << "*";
	}
	cout << endl;
	cout << "6:";
	for(int f=0; f<count6; f++){
		cout << "*";
	}
	cout << endl;
	return 0;
}
