import scala.io.StdIn.{readDouble,readLine}

object Main extends App {
  val n = readInt
  val d = new Array[Int](6)
  for(i<- 0 until n) {
    val h = readDouble
    if(h < 165D) d(0) = d(0)+1
    else if(h >= 165D && h < 170D) d(1) = d(1)+1
    else if(h >= 170D && h < 175D) d(2) = d(2)+1
    else if(h >= 175D && h < 180D) d(3) = d(3)+1
    else if(h >= 180D && h < 185D) d(4) = d(4)+1
    else if(h >= 185D) d(5) = d(5)+1
  }

  for(i<-1 to 6) { println(i + ":" + ("*" * d(i-1))) }
}