Problem 706 -- LC-Display

read problem

Tips

An interesting string manipulation exercise.

There is no special tricks. Just make good of all existing string functions to compose digit-diagrams by strings.

I divide each digit into 5 parts from top to bottom, and write 5 functions to create the parts needed.

Test Cases

Input

1 1234567890
2 1234567890
3 1234567890
0 0

Output

     -   -       -   -   -   -   -   - 
  |   |   | | | |   |     | | | | | | |
     -   -   -   -   -       -   -     
  | |     |   |   | | |   | | |   | | |
     -   -       -   -       -   -   - 

      --   --        --   --   --   --   --   -- 
   |    |    | |  | |    |       | |  | |  | |  |
   |    |    | |  | |    |       | |  | |  | |  |
      --   --   --   --   --        --   --      
   | |       |    |    | |  |    | |  |    | |  |
   | |       |    |    | |  |    | |  |    | |  |
      --   --        --   --        --   --   -- 

       ---   ---         ---   ---   ---   ---   ---   --- 
    |     |     | |   | |     |         | |   | |   | |   |
    |     |     | |   | |     |         | |   | |   | |   |
    |     |     | |   | |     |         | |   | |   | |   |
       ---   ---   ---   ---   ---         ---   ---       
    | |         |     |     | |   |     | |   |     | |   |
    | |         |     |     | |   |     | |   |     | |   |
    | |         |     |     | |   |     | |   |     | |   |
       ---   ---         ---   ---         ---   ---   ---