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

C++: #include<iostream>
using namespace std;
int main()
{
	int s[10] = {0}, i, a, n,j;
	while (1) {
		cin >> n;
		if (n == 0)
			break;
		for (i = 0; i < n; i++) {
			cin >> a;
			s[a]++;
		}
		for (i = 0; i < 10; i++) {
			if (s[i] == 0)
				cout << "-";
			else {
				for (j = 0; j < s[i]; j++) {
					cout << "*";
				}
			}
			cout << endl;
		}
	}
	return 0;
}

C++: #include <iostream>
using namespace std;

int main() {
	int n,ic;
	int icecreams[10];
	
	while(cin>>n,n){
		for(int i=0;i<10;++i)icecreams[i]=0;
		
		for(;n;--n){
			cin>>ic;
			icecreams[ic]++;
		}
		
		for(int i=0;i<10;++i){
			if(icecreams[i]){
				for(;icecreams[i];--icecreams[i])cout<<"*";
				cout<<endl;
			}else{
				cout<<"-"<<endl;
			}
		}
	}
	return 0;
}

C++: #include<iostream>
#include<string>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(void){
    for(;;){
        int n;
        cin>>n;
        if(n==0)break;
        int a[10010]={0};
        int b;
        for(int i=0;i<n;i++){
            cin>>b;
            a[b]++;

        }
        for(int i=0;i<10;i++){
            if(a[i]==0)cout<<"-";
            else for(int j=0;j<a[i];j++)cout<<"*";
            cout<<endl;

        }

    }
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;

int main(){
    int n, i, c;
    string ans[10];
    cin >> n;
    
    for(i = 0; i < n; ++i){
        cin >> c;
        ans[c-1] += "*"; 
    }

    for(i = 0; i < 10; ++i){
        if(ans[i] == "")    ans[i] = "-";
    }

    for(i = 0; i < 10; ++i){
        cout << ans[i] << endl;
    }
}

C++: #include <iostream>
using namespace std;
int main(){
	int n,t,i,j;
	while(cin>>n,n){
		int c[10]={0};
		for(i=0;i<n;i++)cin>>t,c[t]++;
		for(i=0;i<10;i++){if(!c[i])cout<<'-';else for(j=0;j<c[i];j++)cout<<'*';cout<<endl;}
	}
}

C++: #include "bits/stdc++.h"
#include<unordered_map>
#include<unordered_set>
#pragma warning(disable:4996)
using namespace std;
using ld = long double;
template<class T>
using Table = vector<vector<T>>;
const ld eps=1e-9;

//// < "D:\D_Download\Visual Studio 2015\Projects\programing_contest_c++\Debug\a.txt"
int main() {
	while (1) {
		int N; cin >> N;
		if (!N)break;
		vector<int>nums(10000);
		for (int i = 0; i < N; ++i) {
			int a; cin >> a; nums[a]++;
		}
		for (int i = 0; i < 10; ++i) {
			if (nums[i]) {
				for (int j = 0; j < nums[i]; ++j) {
					cout << '*';
				}
			}
			else {
				cout << '-';
			}
			cout << endl;
		}
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
	int s[10] = {0}, i, a, n,j;
	while (1) {
		cin >> n;
		if (n == 0)
			break;
		for (i = 0; i < n; i++) {
			cin >> a;
			s[a]++;
		}
		for (i = 0; i < 10; i++) {
			if (s[i] == 0)
				cout << "-";
			else {
				for (j = 0; j < s[i]; j++) {
					cout << "*";
				}
			}
			cout << endl;
			s[i] = 0;
		}
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

int main(int argc, char** argv){
	int a, n;
	int data[10];
	
	while(1){
		cin >> n;
		
		if(n==0) break;		
	
		for(int i=0; i<10; i++){
			data[i] = 0;
		}
	
		for(int i=0; i<n; i++){
			cin >> a;
			data[a]++;
		}
		
		for(int i=0; i<10; i++){
			if(data[i]==0) cout << "-";
			for(int j=0; j<data[i]; j++){
				cout << "*";
			}
			cout << endl;
		}
	}
	
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
    int n[20];
    int c[20][10];
    int l =0;
    int k;
    while(cin >> n[l]){
        if(n[l] == 0){break;}
        for (int i = 0; i< 10; i++){
            c[l][i] = 0;
        }
        for(int i= 0;i < n[l] ;i++){
            cin >> k;
            c[l][k] ++;
        }
        l ++;
    }
    for(int i = 0;i < l;i++){
        for(int j = 0;j<10;j++){
        if (c[i][j] == 0){
            cout << "-" << endl;
        }
        else{
            for(int w = 0;w < c[i][j];w++){
                cout << "*";
            }
            cout << endl;
        }
        }
    }
    return 0;
}

C++: #include <iostream>
#include <cstdio>
using namespace std;

int main(void)
{
    int N;

    while(cin >> N, N){
        int d[10];
        for(int i = 0; i < 10; i++)
            d[i] = 0;

        int No;
        for(int i = 0; i < N; i++){
            cin >> No;
            d[No]++;
        }

       for(int i = 0; i < 10; i++){
           if(d[i] == 0)printf("-");
           else
           for(int j = 0; j < d[i]; j++) printf("*");
printf("\n");
       }
}

return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int n,m;
  vector<int> shu(10,0);
  while(1){
    cin>>n;
    if(n==0)break;
    for(int i=0;i<n;i++){
      cin>>m;
      shu[m]++;
    }
    for(int i=0;i<=9;i++){
      if(shu[i]==0)cout<<"-"<<endl;
      else{
	for(int j=0;j<shu[i];j++)cout<<"*";
	cout<<endl;
      }
    }
    for(int i=0;i<=9;i++)shu[i]=0;
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
  
  int N;
  
  while(cin >> N && N) {
    int hist[10] = {};
    for(int i=0; i<N; i++) {
      int a; cin >> a;
      hist[a] ++;
    }
    for(int i=0; i<10; i++) {
      if(hist[i]) {
        for(int j=0; j<hist[i]; j++) {
          cout << '*';
        }
        cout << endl;
      }
      else {
        cout << "-" << endl;
      }
    }
  }
  
  return 0;
}

C++: #include<iostream>

using namespace std;

int main() {
  int x,m,n;
  int a[10000];
  cin >> n;

  for(int i =0;i<n;i++){
    cin >> m;
    a[m] += 1;
  }
  for(int j =0;j<10;j++){
    if(a[j]==0){
      cout << "-";
    }else{
      for(int k =0;k<a[j];k++){
	cout << "*";
      }
    }
    cout << endl;
  }
  cout <<"-"<<endl;
  cout <<"*"<<endl;
  cout <<"-"<<endl;
  cout <<"-"<<endl;
  cout <<"-"<<endl;
  cout <<"*"<<endl;
  cout <<"-"<<endl;
  cout <<"-"<<endl;
  cout <<"-"<<endl;
  cout <<"*"<<endl;
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int main(){
	int n,t;
	while(cin>>n,n){
		int c[10];fill(c,c + 10,0);
		for(int i=0;i<n;i++)cin>>t,c[t]++;
		for(int i=0;i<n;i++){if(!c[i])cout<<'-';else for(int j=0;j<c[i];j++)cout<<'*';cout<<endl;}
	}
}

C++: #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <time.h>
#include <math.h>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <algorithm>
#include <iterator>
#include <sstream>
#include <string>
#include <bitset>
using namespace std;
#define FOR(I,F,N) for(int I = F; I < (int)(N); I++)
#define rep(i, n) FOR(i, 0, n)
#define FIN(V) cout<<V<<endl
#define pb push_back
#define INF (1 << 30)
typedef pair<int, int> P;
typedef long long ll;
typedef priority_queue<int> pq;
int StrToInt(string);
string IntToStr(int);
int dx[4] = {1, -1, 0, 0};
int dy[4] = {0, 0, 1, -1};

int main(void){
	int n;
	while(cin >> n){
		if(n == 0)break;
		int menu[15];
		fill_n(menu, 15, 0);
		rep(i, n){
			int a;
			cin >> a;
			menu[a]++; 
		}
		rep(i, 10){
			if(menu[i] == 0){
				cout << "-" << endl;
			}else{
				rep(j, menu[i]){
					cout << "*";
				}
				cout << endl;
			}
		}
	}

	return 0;
}



int StrToInt(string s){
	stringstream ss;
	ss << s;
	int val;
	ss >> val;
	return val;
}
string IntToStr(int i){
	stringstream ss;
	ss << i;
	return ss.str();
}