#include <set>
#include <map>
#include <iostream>
#include <cmath>
#define REP(i,n) for(int i=0; i<(int)(n); i++)

using namespace std;

int main(){
  map<int, int> m;
  int n;
  cin >> n;
  REP(i,n){
    double tmp; cin >> tmp;
    int t = floor(tmp * 10 + 1e-10);
    m[max(1649, min(1850, t)) / 50]++;
  }
  REP(i,6){
    cout << i + 1 << ":";
    REP(j, m[(i + 1649 / 50)])
      cout << "*";
    cout << endl;
  }
  return 0;
}