#include<iostream>
#include<cstring>
#include<algorithm>
#include<string>
#include<vector>
#include<map>
#include<cstdio>
#include<cmath>
#define pb push_back
#define mp make_pair
#define loop(i,a,b) for(int i=a;i<b;i++)
#define rep(i,b) loop(i,0,b)
#define all(in) in.begin(),in.end()
const double PI=acos(-1);
using namespace std;
int main(){
	double h[6]={165.0,170.0,175.0,180.0,185.0,9999};
	int co[6]={0};
	int n;
	cin>>n;
	rep(i,n){
		double in;
		cin>>in;
		rep(j,6)if(in<h[j]){co[j]++;break;}
	}
	rep(i,6){
		cout<<i+1<<":";
		rep(j,co[i])cout<<"*";
		cout<<endl;
	}
}