#include <iostream>
using namespace std;
string str[7];

void distribution(double h) {
  if(h < 165.0) {
    str[1] += "*";
    return;
  }
  if(h < 170.0) {
    str[2] += "*";
    return;
  }
  if(h < 175.0) {
    str[3] += "*";
    return;
  }
  if(h < 180.0) {
    str[4] += "*";
    return;
  }
  if(h < 185.0) {
    str[5] += "*";
    return;
  }
  else {
    str[6] += "*";
    return;
  }
}

int main() {
  int n;
  double h;
  cin >> n;
  for(int i=0;i<n;i++) {
    cin >> h;
    distribution(h);
  }
  for(int i=1;i<7;i++) {
    cout << i << ":" << str[i] << endl;
  }
}