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
    else:
        x=[]
        for i in range(n):
            a=int(input())
            x.append(a)
        x.sort()
        b=0
        for j in range (0,10):
            m=x.count(b)
            
            
            if m==0:
                print("-")
                    
            else:
                print("*"*m)
            b+=1

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: 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: 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 range(10):
        if l[j]==0:
            print('-')
        else:
            k=0
            while k<=l[j]-2:
                print('*',sep='',end='')
                k+=1
            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: #!/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:
        for _ in range(d):
            print("*", end="")

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

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): #iはアイスの10種類　リストのn番目=iのアイスが何個売れた
            if lst[i]==0:
                print('-')
            else:
                for j in range(lst[i]):#jはある種類iがlst[i]回であったときforで*表示を回す
                    print('*',end='')#改行に気をつける
                print('')

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

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

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:
    n= int(input())
    if n== 0: break
    c= [int(input()) for _ in range(n)]
    for i in range(10):
        cc= c.count(i)
        print('-' if cc== 0 else cc*"*")

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

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

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

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

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

Python: from collections import defaultdict

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

Python: # Aizu Problem 0219: A Popular Ice-cream Shop

import sys, math, os, fractions

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")



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

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

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())
    x[a]+=1
  for i in range(10):
    if x[i]==0:
      print('{}'.format('-')) 
    else:
      print('{}'.format(x[i]*'*'))

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