#include <iostream>
#include <complex>
#include <sstream>
#include <string>
#include <algorithm>
#include <deque>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <vector>
#include <set>
#include <limits>
#include <cstdio>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <ctime>
using namespace std;
#define REP(i, j) for(int i = 0; i < j; ++i)
#define FOR(i, j, k) for(int i = j; i < k; ++i)
#define P pair<int, int>

int main() {
  int n; cin >>n;
  vector<int> ans(6, 0);
  REP(i, n){
    double h; cin >>h;
    if(h < 165.0) ans[0] += 1;
    else if(h < 170.0) ans[1] += 1;
    else if(h < 175.0) ans[2] += 1;
    else if(h < 180.0) ans[3] += 1;
    else if(h < 185.0) ans[4] += 1;
    else ans[5] += 1;
  }
  REP(i, 6){
    cout <<i + 1 <<":";
    REP(j, ans[i]) cout <<"*";
    cout <<endl;
  }
  return 0;
}