#include <iostream>
#include <fstream>
using namespace std;
int main()
{
    int x, rem;
    ofstream fout;
    ifstream fin;
    fin.open ("DATA1.txt");
    fout.open ("OUT1.txt");
    for (int i = 0; i < 5; i++)
    {
        fin >> x;
        rem = 5 - x;
        if (x > 0) 
        {
              fout << "-----|";
              for (int j = 0; j < x; j++)
              {
                  fout << "*";
              }
              for (int k = 0; k < rem; k++)
              {
                  fout << "-";
              }
              fout << "\n";
        }
        else if (x == 0)
        {
             fout << "-----|-----";
             fout << "\n";
        }
        else if (x < 0)
        {
              x = x*-1;
              rem = 5 - x;
              for (int l = 0; l < rem; l++)
              {
                  fout << "-";
              }
              for (int m = 0; m < x; m++)
              {
                  fout << "*";
              }
              fout << "|-----";
              fout << "\n";
        }
    
    }
    fout.close();
    fin.close();
    system("PAUSE");
    return 0;
}

