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: while True:
    n=int(input())
    if n==0:
        break
    m=[0 for i in range(10)]
    for i in range(n):
        a=int(input())
        m[a]+=1
    for a in m:
        if a>0:
            print("*"*a)
        else:
            print("-")

Python: while True:
    N=int(input())
    A=0
    B=0
    C=0
    D=0
    E=0
    F=0
    G=0
    H=0
    I=0
    J=0
    i=0
    j=0
    L=[]
    if N==0:
        break
    else:
        L=[int(input()) for _ in range (N)]
        for i in range (N):
            if L[i]==0:
                A+=1
            elif L[i]==1:
                B+=1
            elif L[i]==2:
                C+=1
            elif L[i]==3:
                D+=1
            elif L[i]==4:
                E+=1
            elif L[i]==5:
                F+=1
            elif L[i]==6:
                G+=1
            elif L[i]==7:
                H+=1
            elif L[i]==8:
                I+=1
            else:
                J+=1
        S=[A,B,C,D,E,F,G,H,I,J]
        
        
        for j in range(10):
            T=S[j]
            if T==0:
                print("-")
            else:
                k=0
                print("*"*T)

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: # AOJ 0219: A Popular Ice-cream Shop
# Python3 2018.6.23 bal4u

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
    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 True:
    n = int(input())
    if n == 0:
        break

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

Python: while 1:
  n = int(input())
  if n == 0:
    break
  x = [0 for i in range(10)] 
  for i in range(n):
    c = int(input())
    x[c] += 1

  for i in range(10):
    count = '*' * x[i] 
    if len(count) == 0:
      print("-")
    else:
      print(count)

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

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

    for d in data:
        if d == 0:
            print("-")
        else:
            print("*" * d)

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

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

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

    ice = [0] * 10
    for _ in range(n):
        c = int(input())
        ice[c] += 1

    for i in ice:
        if i == 0:
            print("-")
        else:
            print("*" * i)

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

Python: from collections import defaultdict

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

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

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
    
    con=[0]*10

    for i in range(n):
        con[int(input())]+=1
    
    for i in range(10):
        if con[i]==0:
            print("-")
        else :
            for j in range(con[i]-1):
                print("*",end="")
            print("*")

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

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

Python: while True:
    n = int(input())
    if n == 0:
        break
    cnt = [0] * 10

    for i in range(n):
        a = int(input())
        cnt[a] += 1

    for a in cnt:
        if a == 0:
            print('-')
        else:
            print('*'*a)

Python: y=[0,1,2,3,4,5,6,7,8,9]

while True:
    n=int(input())
    if n==0:
        break
    x=[]
    z=[0,0,0,0,0,0,0,0,0,0]
    for i in range(n):
        c=int(input())
        x.append(c)
#    print(x)
    
    for i in range(10):
        for j in x:
            if y[i]==j:
                z[i]+=1
                
#    print(z)
    
    for k in range(10):
        if z[k]==0:
            print('-')
        else:
            for l in range(z[k]):
                print('*',end='')
            print()

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

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

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