#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<math.h>
#include<string>
#include<string.h>
#include<stack>
#include<queue>
#include<vector>
#include<utility>
#include<set>
#include<map>
#include<stdlib.h>
#include<iomanip>

using namespace std;

#define ll long long
#define ld long double
#define EPS 0.0000000001
#define INF 1e9
#define rep(i,n) for(i=0;i<n;i++)
#define loop(i,a,n) for(i=a;i<n;i++)
#define all(in) in.begin(),in.end()
#define shosu(x) fixed<<setprecision(x)

typedef vector<int> vi;
typedef pair<int,int> pii;

int main(void) {
  int i,j;
  int n;
  cin>>n;
  vi v (6,0);
  rep(i,n){
    double h;
    cin>>h;
    if(h<165)v[0]++;
    else if(h<170)v[1]++;
    else if(h<175)v[2]++;
    else if(h<180)v[3]++;
    else if(h<185)v[4]++;
    else v[5]++;
  }
  rep(i,6){
    cout<<i+1<<":";
    rep(j,v[i])
      cout<<"*";
    cout<<endl;
  }
}