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
    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
    
    a=[]

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

    for i in range(10):
        x=a.count(str(i))
        if x==0:
            print("-")
    
        else :
            print("*"*x)

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

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

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

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

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

Python: # -*- coding: utf-8 -*-
"""
A Popular Ice-cream Shop
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0219

"""
import sys


def solve(n):
    sales = [0] * 10
    for _ in range(n):
        sales[int(input())] += 1
    return ['*' * s if s else '-' for s in sales]


def main(args):
    while True:
        n = int(input())
        if n == 0:
            break
        ans = solve(n)
        print(*ans, sep='\n')


if __name__ == '__main__':
    main(sys.argv[1:])

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
    if n==0:
        break
    for i in range(n):
        a=int(input())
        if a==0:
            A=A+1
        elif a==1:
            B=B+1
        elif a==2:
            C=C+1
        elif a==3:
            D=D+1
        elif a==4:
            E=E+1
        elif a==5:
            F=F+1
        elif a==6:
            G=G+1
        elif a==7:
            H=H+1
        elif a==8:
            I=I+1
        else:
            J=J+1
    if A>0:
        print('*'*A)
    else:
        print('-')
    if B>0:
        print('*'*B)
    else:
        print('-')
    if C>0:
        print('*'*C)
    else:
        print('-')
    if D>0:
        print('*'*D)
    else:
        print('-')
    if E>0:
        print('*'*E)
    else:
        print('-')
    if F>0:
        print('*'*F)
    else:
        print('-')
    if G>0:
        print('*'*G)
    else:
        print('-')
    if H>0:
        print('*'*H)
    else:
        print('-')
    if I>0:
        print('*'*I)
    else:
        print('-')
    if J>0:
        print('*'*J)
    else:
        print('-')

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

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):
            m=x1.count(b)
            
            if m==0:
                print("-")
                    
            else:
                print("*"*m)
            b+=1

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

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

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

Python: j = 0
while j < 20:
    n = int(input())
    if n == 0:
        break
        
    ice = []
    for i in range(n):
        a = int(input())
        ice.append(a)

    for i in range(10):
        b = ice.count(i)
        if b == 0:
            print('-')
        else:
            print('*'*b)

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