#include <iostream>
#include <fstream>

using namespace std;

ifstream reader("DATA1.txt");
ofstream writer("OUT1.txt");

string displays[] = {"*****|-----", 
                     "-****|-----",
                     "--***|-----",
                     "---**|-----",
                     "----*|-----",
                     "-----|-----",
                     "-----|*----",
                     "-----|**---",
                     "-----|***--",
                     "-----|****-",
                     "-----|*****",};

int main(){
    int m;
    while(reader >> m){
         writer << displays[m + 5] << endl;
    }
}

