#include<iostream>
#include<algorithm>
#include<set>
#include<map>
#include<vector>
#include<queue>
#include<cstring>
#include<cmath>
#include<cstdio>
#include<cstdlib>
using namespace std;
#define REP(i,a,n) for(int i = a ; i < n ; i++)
#define rep(i,n) REP(i,0,n)

typedef long long ll;

int main(){
  int n;
  cin>>n;

  int cnt[6];
  memset(cnt,0,sizeof(cnt));

  rep(i,n){
    double x;
    cin>>x;
    if(x < 165) cnt[0]++;
    else if(x < 170) cnt[1]++;
    else if(x < 175) cnt[2]++;
    else if(x < 180) cnt[3]++;
    else if(x < 185) cnt[4]++;
    else cnt[5]++;
  }

  rep(i,6){
    cout<<i+1<<":";
    rep(j,cnt[i]){
      cout<<"*";
    }
    cout<<endl;
  }
}