#!/usr/bin/env python3



while True:

    n = int(input())

    data = [0] * 10

    if n == 0:

        break



    for _ in range(n):

        in_data = int(input())

        data[in_data] += 1



    for d in data:

        for _ in range(d):

            print("*", end="")



        if d == 0:

            print("-")

        else:

            print(end="\n")

#!/usr/bin/env python3



while True:

    n = int(eval(input()))

    data = [0] * 10

    if n == 0:

        break



    for _ in range(n):

        in_data = int(eval(input()))

        data[in_data] += 1



    for d in data:

        if d == 0:

            print("-")

        else:

            print(("*" * d))
#!/usr/bin/env python3
while True:
    n = int(input())
    data = [0] * 10
    if n == 0:
        break
    for _ in range(n):
        in_data = int(input())
        data[in_data] += 1
    for d in data:
        for _ in range(d):
            print("*", end="")
        if d == 0:
            print("-")
        else:
            print(end="\n")

#!/usr/bin/env python3
while True:
    n = int(eval(input()))
    data = [0] * 10
    if n == 0:
        break
    for _ in range(n):
        in_data = int(eval(input()))
        data[in_data] += 1
    for d in data:
        if d == 0:
            print("-")
        else:
            print(("*" * d))

-    n = int(input()) +    n = int(eval(input())) -        in_data = int(input()) +        in_data = int(eval(input())) -        for _ in range(d): -            print("*", end="") -            print(end="\n") +            print(("*" * d))