while n = gets.to_i
  break if n == 0
  a = Array.new(10,0)
  for i in 1..n
    x = gets.to_i
    a[x] = a[x]+1
  end
  for i in 0..9
    if a[i] == 0 
      puts "-"
    else
      puts "*" * a[i]
    end
  end
end
