def showSales sales
  sales.each do |n|
    printf "-" if n == 0
    n.times do
      printf "*"
    end
    puts ""
  end
end

while (n = $stdin.gets.to_i) != 0
  sales = Array.new(10, 0)
  n.times do 
    sales[$stdin.gets.to_i] += 1
  end
  showSales sales
end