import java.io.*;
public class P1
{
    public static void main (String[] args) throws IOException
    {
	BufferedReader in = new BufferedReader (new FileReader ("DATA1.txt"));
	PrintWriter out = new PrintWriter (new FileWriter ("OUT1.txt"));
	for (int x = 0 ; x < 5 ; x++)
	{
	    int a = Integer.parseInt (in.readLine ());
	    String line = "";
	    if (a < 0)
	    {
		for (int y = 0 ; y < 5 - Math.abs (a) ; y++)
		    line += "-";
		for (int y = 0 ; y < Math.abs (a) ; y++)
		    line += "*";
		line += "|-----";

	    }
	    else
	    {
		line += "-----|";
		for (int y = 0 ; y < Math.abs (a) ; y++)
		    line += "*";
		for (int y = Math.abs (a) ; y < 5 ; y++)
		    line += "-";
	    }
	    out.println (line);
	}
	out.close ();
    }
}


