#include <iostream>
#include <string>
#include <cmath>

using namespace std;

int main (){
	freopen ("data1.txt", "r", stdin);
	freopen ("out1.txt", "w", stdout);
	int n, z, i;
	
	for (z=0; z<5; ++z){
		cin >> n;
		if (n==0){
			cout << "-----|-----" << endl;
		}
		else if (n==1){
			cout << "-----|*----" << endl;
		}
		else if (n==2){
			cout << "-----|**---" << endl;
		}
		else if (n==3){
			cout << "-----|***--" << endl;
		}
		else if (n==4){
			cout << "-----|****-" << endl;
		}
		else if (n==5){
			cout << "-----|*****" << endl;
		}
		else if (n==-1){
			cout << "----*|-----" << endl;
		}
		else if (n==-2){
			cout << "---**|-----" << endl;
		}
		else if (n==-3){
			cout << "--***|-----" << endl;
		}
		else if (n==-4){
			cout << "-****|-----" << endl;
		}
		else if (n==-5){
			cout << "*****|-----" << endl;
		}
	}
	
	return 0;
}

