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