while true
    n = gets.to_i
    break if n == 0
    arr = Array.new(10, 0)
    n.times{arr[gets.to_i] += 1}
    arr.each{|x|
        if x == 0
            puts '-'
        else
            puts '*' * x
        end
    }
end
