#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
#include <cstring>
using namespace std;
int main()
{
    freopen("DATA1.txt", "r", stdin);
    freopen("OUT1.txt", "w", stdout);
    for (int i = 0; i < 5; i++)
    {
        int n;
        cin >> n;
        if (n > 0)
        {
            cout << "-----|";
            for (int j = 0; j < n;j++) cout << "*";
            for (int j = 0; j < 5-n; j++) cout << "-";
            cout << endl;
        }
        else if (n < 0)
        {
            n*=-1;
            for (int j = 0; j < 5-n; j++) cout << "-";
            for (int j = 0; j < n;j++) cout << "*";
            cout << "|-----";
            cout << endl;
        }
        else cout << "-----|-----" << endl;
    }
    return 0;
}

