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