object Main extends App {

  import scala.io.StdIn._

  solve
  def solve:Unit = {
    val n = readInt
    if (n == 0) return
    val count = Array.tabulate(10){_ ⇒ 0}
    for (_ ← 0 until n){
      count(readInt) += 1
    }
    println(count.map(i ⇒ if (i == 0) "-" else "*" * i).mkString("\n"))
    solve
  }
  implicit class Extension[T](val value :T) extends AnyVal {
    @inline
    def let[A](@inline func: T ⇒ A): A = func(value)
    @inline
    def also(@inline func: T ⇒ Unit): T = {func(value); value}
  }
}
