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
    a = [int(input()) for i in range(n)]
    nums = [0 for i in range(10)]
    for j in range(len(a)):
        k = int(a[j])
        nums[int(a[j])] += 1
    for t in range(10):
        s = nums[t]
        if s == 0:
            print('-')
        else:
            print('*'*s)

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

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

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

Python: while True:
    a = [];
    n = int(input());
    if n == 0:
        break;
    for i in range(0,n):
        b = int(input());
        a.append(b);

    for i in range(0,10):
        c = a.count(i);
        if c == 0:
            print('-');
        else:
            for j in range(0,c):
                print('*',end = '');
            print();

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

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

   for i in range(n):
      c = int(input())
      l[c] += 1
   #print(l)

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

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

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

Python: from collections import Counter
while True:
    cnt = Counter()
    n = int(input())
    if n == 0: break
    for i in range(n):
        cnt[int(input())] +=1

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

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

Python: while True:
    num = int(input())
    if num == 0:break
    else:
        #要素0が10個入ったリストを作る
        num_list = [0 for _ in range(10)]
        
        #標準入力で買われたアイスの番号を入力しリストに加える
        for _1 in range(num):
            n = int(input())
            num_list[n] += 1
            
        #0なら"-"を出力する
        for i in range(0,10):
            if num_list[i] == 0:print("-")
            
        #0でないなら"*"を買われた数出力する
            else:
                for j in range(num_list[i]):
                    print("*",end="")
                print()

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
    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: 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("*")