#include <bits/stdc++.h>
using namespace std;
int main(){
	int n;
	string rank[6];
	cin>>n;
	while(n--){
		double input;
		cin>>input;
		if(input<165.0)rank[0]+='*';
		else if(165.0<=input&&input<170.0)rank[1]+='*';
		else if(170.0<=input&&input<175.0)rank[2]+='*';
		else if(175.0<=input&&input<180.0)rank[3]+='*';
		else if(180.0<=input&&input<185.0)rank[4]+='*';
		else if(185.0<=input)rank[5]+='*';
	}
	for(int i=0;i<6;i++){
		cout<<i+1<<':'<<rank[i]<<endl;
	}
}