Go: package main

import (
	"bufio"
	"os"
	"strconv"
	"fmt"
)

var scanner = bufio.NewScanner(os.Stdin)

func main() {
	for scanner.Scan() {
		n, _ := strconv.Atoi(scanner.Text())
		if n == 0 {
			break
		}
		a := make([]int, 10)
		for i := 0; i < n; i++ {
			scanner.Scan()
			c, _ := strconv.Atoi(scanner.Text())
			a[c]++
		}
		for _, v := range a {
			if v == 0 {
				fmt.Println("-")
				continue
			}
			for i := 0; i < v; i++ {
				if i == v-1 {
					fmt.Println("*")
				} else {
					fmt.Print("*")
				}
			}
		}
	}
}

Python: def pri(x):
    if x>0:
        print('*'*x)
    else:
        print('-')
while True:
    n = int(input())
    if n ==0:
        break
    a=[]
    b=c=d=e=f=g=h=k=l=m=0
    for i in range(n):
        a.append(int(input()))
    a.sort()
    for j in range(n):
        if a[j]==0:
            b += 1
        if a[j]==1:
            c += 1
        if a[j]==2:
            d += 1
        if a[j]==3:
            e += 1
        if a[j]==4:
            f += 1
        if a[j]==5:
            g += 1
        if a[j]==6:
            h += 1
        if a[j]==7:
            k += 1
        if a[j]==8:
            l += 1
        if a[j]==9:
            m += 1
    pri(b)
    pri(c)
    pri(d)
    pri(e)
    pri(f)
    pri(g)
    pri(h)
    pri(k)
    pri(l)
    pri(m)

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

Python: while True:
    n = int(input())
    
    if n==0:
        break
    
    clist = []
    for i in range(n):
        c = int(input())
        clist.append(c)
    
    klist = []
    for i in range(10):
        kosu = clist.count(i)
        klist.append(kosu)
    
    for i in range(10):
        if klist[i]>0:
            print('*'*klist[i])
        if klist[i]==0:
            print('-')

Python: while True:
        n =int (input())
        if n == 0:
            break
        data = [int(input()) for _ in range(n)]
        #print(data)
        i = 0
        for i in range(10):
            #print(i,data.count(i))
            if data.count(i) == 0:
                print('-')
            else:
                A = data.count(i)
                #print(A)
                for _ in range(A):
                    print('*', end="")
                print("")
            i = i + 1

Python: #!/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] += 1

    for d in data:
        for _ in range(d):
            print("*", end="")

        if d == 0:
            print("-")
        else:
            print(end="\n")

Python: while True:
    n=int(input())
    if n==0:
        break
    C=[]
    for i in range(n):
        C.append(int(input()))
    for i in range(10):
        D=(C.count(i))
        if D==0:
            print('-')
        else:
            print('*'*D)

Python: while True :
    n=int(input())
    if n==0:
        break
    
    ice=list([0] * 10)
    for i in range(n):
        ice[int(input())] += 1
    

    for i in range(10):
        if ice[i] > 0:
            for j in range(ice[i]):
                print("*", sep="", end="")
            print( )
        else:
            print("-")

Python: while True:
  n = int(input())
  if n == 0:
    break
  c=[]
  for i in range(n):
    c.append(int(input()))
  for i in range(10):
    s = c.count(i)
    if s != 0:
      for j in range(s):
        print("*",end='')
      print()
    else:
      print('-')

Python: while True :
    p=int(input())
    if p==0 : break
    c=[0]*10
    for k in range(p):
        a=int(input())
        c[a]=c[a]+1
    for i in range(10):
        if c[i]==0 : print("-", end="")
        else : 
            for j in range(c[i]): 
                print("*", end="")
        print("")

Python: while True:
    n=int(input())
    if n==0:
        break
    else:
        list=[0]*10
        for i in range(n):
            list[int(input())]+= 1
        for i in range(10):
            if list[i]==0:
                print('-')
            else:
                for j in range(list[i]):
                    print('*', end='')
                print()

Python: while True:
    n=int(input())
    if n==0:
        break
    else:
        c=[0]*10
        for i in range(n):
            a=int(input())
            c[a]+=1
        for j in range(10):
            if c[j]==0:
                print("-")
            else:
                print("*"*c[j])

Python: while True:
    n=int(input())
    x=[]
    if n==0:
        break
    else:
        for i in range(n):
            s=int(input())
            x.append(s)
        for i in range(0,10):
            a=x.count(i)
            if a==0:
                print("-")
            else:
                print("*"*a)

Python: while True:
    n = int(input())
    if n == 0: break

    dic = {
        0: 0, 1: 0, 2: 0, 3: 0, 4: 0,
        5: 0, 6: 0, 7: 0, 8: 0, 9: 0
    }
    for _ in range(n):
        c = int(input())
        dic[c] += 1

    for v in dic.values():
        print('*' * v if v != 0 else '-')

Python: n=int(input())
#print(n)
while n!=0:
    icecream=[0]*10
    for i in range(n):
        a=int(input())
        icecream[a]+=1
    #print(icecream)
    for j in range(10):
        if icecream[j]==0:
            print('-')
        else:
            print('*'*icecream[j])
    n=int(input())

Python: import collections

while True :

    a=[]
    n=int(input())

    if n==0 :
        break

    for i in range (n) :
        x=int(input())
        a.append(x)

    a.sort()

    c = collections.Counter(a)


    for i in range(10):
        if c[i] == 0: 
            print('-')
        else: 
            print('*'*c[i])

Python: while True:
    n=int(input())
    if n == 0:break
    ans = [0 for i in range(10)]
    for l in range(n):
        a = int(input())
        ans[a] += 1
    for i in range(10):
        if ans[i] == 0: print('-')
        else:
            for j in range(ans[i]):
                print('*',end='')
            print('')

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

Python: # coding: utf-8
# Your code here!

for i in range(20):
    n = int(input())
    if n == 0:
        break
    a = [0]*10
    for i in range(n):
        b = int(input())
        a[b] += 1
    for b in a:
        if b > 0:
            print("*"*b)
        else:
            print("-")

Python: while True:
    n = int(input())
    if n == 0: break
    f = [0]*10
    for i in range(n): f[int(input())] += 1
    for i in range(10):
        if f[i] == 0: print('-')
        else: print('*'*f[i])

Python: while True:
  n = int(input())
  if n == 0:
    break
  f = [0] * 10
  for i in range(n):
    f[int(input())] += 1
  for i in range(10):
    if f[i] == 0:
      print('-')
    else:
      print('*'*f[i])

Python: while True:
    n = int(input())
    if n==0:
        break
    l = list([0] * 10)
    for i in range(n):
        c = int(input())
        l[c] += 1
    for i in range(10):
        if l[i]==0:
            print("-")
        else:
            print("*"*l[i])

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

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