#include <iostream>
using namespace std;

int main()
{
	int n;

	cin >> n;

	while (n > 0) {

		int a[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
		for (int i = 0; i < n; i++) {
			int c;

			cin >> c;
			a[c]++;
		}

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