while n =gets.to_i do
    if n==0 then
        break
    end
    x=Array.new(10,0)
    for i in 1..n do
        a=gets.to_i
        x[a]=x[a]+1
    end

    for i in 0..9 do
        if x[i]==0
            print '-'
        else
            for j in 1..x[i] do
                print '*'
            end
        end
        print "\n"
    end
end