while 1:

	n=eval(input())

	if n==0:break

	h=[0]*10

	for i in range(n):

		h[int(input())]+=1

	for i in range(10):

		print("*"*h[i] if h[i] else "-")
while 1:

	n=eval(input())

	if n==0:break

	h=[0]*10

	for i in range(n):

		h[int(input())]+=1

	for i in h:

		print("*"*i if i else "-")
while 1:
    n = eval(input())
    if n == 0:
        break
    h = [0] * 10
    for i in range(n):
        h[int(input())] += 1
    for i in range(10):
        print("*" * h[i] if h[i] else "-")

while 1:
    n = eval(input())
    if n == 0:
        break
    h = [0] * 10
    for i in range(n):
        h[int(input())] += 1
    for i in h:
        print("*" * i if i else "-")

-    for i in range(10): -        print("*" * h[i] if h[i] else "-") +    for i in h: +        print("*" * i if i else "-")