#include <iostream>
using namespace std;
int main(void)
{
	double date[7]={0,165,170,175,180,185,2000};
	int n;
	cin >> n;
	int freq[7]={0};
	while(n--){
		double height;
		cin >> height;
		for(int i=1;i<7;i++){
			if(date[i-1]<=height&&height<date[i]){
				freq[i]++;
				break;
			}
		}
	}
	for(int i=1;i<7;i++){
		cout << i << ":";
		for(int j=0;j<freq[i];j++){
			cout << "*";
		}
		cout << "\n";
	}
	return 0;
}