#include<iostream>
#include<cstdio>
#include<algorithm>
#include<climits>
#include<string>
#include<vector>
#include<list>
#include<map>
#include<set>
#include<cmath>
#include<queue>
#include<cstring>
#include<stack>
#include<functional>
using namespace std;

signed main(){
	int N,cnt[6]={};
	cin>>N;
	for(int i=0;i<N;i++){
		double H; cin>>H;
		int c;
		if(H<165.0) c = 0;
		else if(H>=185) c = 5;
		else c = (H-165.0)/5.0+1;
		cnt[c]++;
	}
	for(int i=0;i<6;i++){
		printf("%d:",i+1);
		for(int j=0;j<cnt[i];j++) printf("*"); puts("");
	}
	return 0;
}