#include<iostream>
#include<cstring>
#include<algorithm>
#include<vector>
#include<cstdio>
#include<cmath>
#define pb(in,tmp) in.push_back(tmp)
#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()
using namespace std;
int main(){
int n;
int han[6]={0};
int han1[6]={185.0,180.0,175.0,170.0,165.0,0};
cin>>n;
rep(i,n){
double in1;
cin>>in1;
rep(j,6){if(in1>=han1[j]){han[5-j]++;break;}}
}
rep(i,6){
//cout<<han[i];
cout<<i+1<<":";
rep(j,han[i])cout<<"*";
cout<<endl;
}
}