#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <complex>
#include <cstring>
#include <cstdlib>
using namespace std;

#define REP(i,n) for(int i=0;i<(int)n;++i)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i)
#define ALL(c) (c).begin(), (c).end()

int main() {
  int n;
  cin >> n;
  vector<double> v(n);
  while(n--) {
    cin >> v[n];
  }
  vector<int> ans(6);
  FOR(it,v) {
    if (*it<165)ans[0]++;
    REP(i,5)
      if (165+i*5<=*it && *it<170+i*5)
        ans[i+1]++;
  }
  REP(i,6) {
    cout << i+1 << ":";
    REP(j,ans[i])
      cout << '*';
    cout << endl;
  }
}