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 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: # coding: utf-8
# Your code here!

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

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

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

Python: # coding: utf-8
# 51

while True:
    n = int(input())
    if n==0:
        break
    c = [int(input()) for i in range(n)]
    m =max(c)
    #print(m)
    k = int(0)
    A = '*'
    for i in range(m+1):
        k = c.count(i)
        if k==0:
            print('-')
        else:
            print(A*k)

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

Python: while True:
  n=int(input())
  x=[0 for i in range(10)]
  if n==0:
    break
  for i in range(n):
    a=int(input())
    if a==0:
      x[0]+=1
    elif a==1:
      x[1]+=1
    elif a==2:
      x[2]+=1
    elif a==3:
      x[3]+=1
    elif a==4:
      x[4]+=1
    elif a==5:
      x[5]+=1 
    elif a==6:
      x[6]+=1
    elif a==7:
      x[7]+=1
    elif a==8:
      x[8]+=1
    else:
      x[9]+=1
  for i in range(10):
    if x[i]==0:
      print('{}'.format('-')) 
    else:
      print('{}'.format(x[i]*'*'))

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

Python: while True:
    n=int(input())
    
    if n==0:
        break
    else:
        x=[]
        for i in range(n):
            a=int(input())
            x.append(a)
        x1=sorted(x)
            
        b=0
        for j in range(0,10):
            s=x1.count(b)
                
            if s==0:
                print('-')
            else:
                print('*'*s)
            b+=1

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

Python: import collections as co
while True:
    n = int(input())
    if n == 0:
        break
    a = []
    for i in range(n):
        b = int(input())
        a.append(b)
    for j in range(10):
        c = a.count(j)
        if c == 0:
            print('-')
        else:
            print('*'*c)

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

Python: import sys
f = sys.stdin

from collections import Counter

while True:
    n = int(f.readline())
    if n == 0:
        break
    counter = Counter(int(f.readline()) for _ in range(n))
    for i in range(10):
        print('*' * counter[i] if 0 < counter[i] else '-')

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

Python: while 1:
    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('*'*c[i])
        else :
            print('-')

Python: while True:
    n = int(input())
    if n == 0:
        break
        
    d = {k: 0 for k in range(n)}
    for _ in range(n):
        x = int(input())
        d[x] += 1

    for k in range(n):
        print("*"*d[k] + "-"*(d[k]==0))

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: #!/usr/bin/env python3

d_init = [0] * 10
while True:
    data = d_init[:]
    n = int(input())
    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
    else:
        c=[int(input()) for i in range(n)]
        j=0
        for j in range(10):
            j+=1
            x=c.count(j-1)
            if x==0:
                print("-")
            else:
                print("*"*x)

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

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