## DRAWCALC - DRAWING NUMBERS

no tags

Mr. Sridhar wanted to create a calculator. He did all the logical part. Now he wants your help for designing the digits and display it in the calculator's screen. You are given a whole number n. Just print the number in digital form.

All the digits must be represented by a 5x5 character array as shown in the figure.

The judge used for this problem is exact Judge. (So you must not print any extra spaces or extra new lines). You must not print a new line character after the last test case.

The characters allowed to create the 5x5 array are '-', '|' and ' '.  Do not print any extra leading or trialing spaces. You must print a space between every two digits.

The character at [i][j] for any digit (0 to 9) is same as the character at [i][j] given in the image. (See sample cases for better understanding).

Input Constraints:

1<=testcases<=100

1<=n<10^13 (n does not contain any leading zeroes)

Sample Input:

4
341
782
5569
1003

Sample Output:

```----- -   -     -
| |   |     |
|---| |---|     |
|     |     |
-----     -     -
----- ----- -----
| |   |     |
| |---| |---|
| |   | |
- ----- -----
----- ----- ----- -----
|     |     |     |   |
|---| |---| |---| |---|
|     | |   |     |
----- ----- ----- -----
- ----- ----- -----
| |   | |   |     |
| |   | |   | |---|
| |   | |   |     |
- ----- ----- -----

```