import std.stdio;
import std.algorithm;
import std.math;
import std.string;
import std.conv;
import std.range;

void main() {
    while (true) {
        int n = readln.chomp.to!int;
        if (n == 0) break;

        int[] ice = new int[10];
        foreach (i; 0..n) {
            ice[readln.chomp.to!int]++;
        }

        foreach (e; ice) {
            if (e == 0) {
                writeln("-");
            } else {
                foreach (i; 0..e) {
                    write("*");
                }
                writeln;
            }
        }
    }
}