Problem: <image>


At the request of a friend who started learning abacus, you decided to create a program to display the abacus beads. Create a program that takes a certain number as input and outputs a row of abacus beads. However, the number of digits of the abacus to be displayed is 5 digits, and the arrangement of beads from 0 to 9 is as follows using'*' (half-width asterisk),''(half-width blank), and'=' (half-width equal). It shall be expressed as.

<image>



Input

Multiple test cases are given. Up to 5 digits (integer) are given on one line for each test case.

The number of test cases does not exceed 1024.

Output

Output the abacus bead arrangement for each test case. Insert a blank line between the test cases.

Example

Input

2006
1111


Output

****
    *
=====
 *  *
****
* ***
*****
*****

*****

=====
 ****
*
*****
*****
*****

Solution (in CPP):

Solution:
/*****include*****/
#include <iostream>
#include <string>
/*****デバッグ定義*****/
//#define DEBUG
/*****マクロ定義*****/

/*****名前空間*****/
using namespace std;

/*****グローバル変数置き場*****/

/*****その他関数置き場*****/

/*****main関数*****/
int main(){
/*****変数置き場*****/
	string table[] = {
		"* = ****",
		"* =* ***",
		"* =** **",
		"* =*** *",
		"* =**** ",
		" *= ****",
		" *=* ***",
		" *=** **",
		" *=*** *",
		" *=**** "
	};
	string answer[5];
	int number;
	int k=0;
	int dummy = 0;
	/*****処理部*****/
	while(1){
		cin >> number;
		if(cin.eof())	break;
		k=4;
		for(int i=1;i<=10000;i*=10){
			answer[k] = table[(number/i)%10];
			//cout << (number/i)%10 << endl;
			k--;
		}
		if(dummy!=0)	cout << endl;
		else			dummy = 1;
		for(int i=0;i<8;i++){
			for(int j=0;j<5;j++){
				cout << answer[j][i];
			}
			cout << endl;
		}
	}
	/*****処理終了後*****/
	return 0;
}