import scala.math.{min,max}

object Main {
  val sc = new java.util.Scanner(System.in)
  def classify(h: Double) = h match {
    case x if x < 165 => 1
    case x if x < 170 => 2
    case x if x < 175 => 3
    case x if x < 180 => 4
    case x if x < 185 => 5
    case _ => 6
  }
  def main(args: Array[String]) {
    val n = sc.nextInt
    val hist = (1 to n).map(_ => sc.nextDouble).groupBy(classify).map(a => a._1 -> a._2.size)
    for(i <- 1 to 6) {
      println(i.toString + ":" + "*"*hist.getOrElse(i, 0))
    }
  }
}