while True:

    n = int(eval(input()))

    if n == 0:

        break



    ice = [int(eval(input())) for _ in range(n)]

    for i in range(10):

        print(("*"*ice.count(i) + "-"*(ice.count(i)==0)))
while True:

    n = int(eval(input()))

    if n == 0:

        break



    ice = [int(eval(input())) for _ in range(n)]

    for i in range(10):

        nums = ice.count(i)

        print(("*"*nums + "-"*(nums==0)))
while True:
    n = int(eval(input()))
    if n == 0:
        break
    ice = [int(eval(input())) for _ in range(n)]
    for i in range(10):
        print(("*" * ice.count(i) + "-" * (ice.count(i) == 0)))

while True:
    n = int(eval(input()))
    if n == 0:
        break
    ice = [int(eval(input())) for _ in range(n)]
    for i in range(10):
        nums = ice.count(i)
        print(("*" * nums + "-" * (nums == 0)))

-        print(("*" * ice.count(i) + "-" * (ice.count(i) == 0))) +        nums = ice.count(i) +        print(("*" * nums + "-" * (nums == 0)))