
import std.stdio;

int type(double height) {
  auto list = [165.0, 170.0, 175.0, 180.0, 185.0];
  foreach(int i, x; list) {
    if (height < x) return i;
  }
  return 5;
}

void main() {
  int[] freq = new int[6];
  int n; readf("%d\n", &n);
  foreach(i; 0..n) {
    double x; readf("%f\n", &x);
    freq[type(x)]++;
  }
  foreach(int i, x; freq) {
    write(i + 1, ":");
    for(int j = 0; j < x; j++) write("*");
    writeln;
  }
}