Олимпиадный тренинг

Задача 42839. Pixel screen


The pixel screen displays each digit as a 3x5 picture.
1 2 3 4 5
 *
 *
 *
 *
 *
***
  *
***
*
***
***
  *
***
  *
***
* *
* *
***
  *
  *
***
*
***
  *
***
6 7 8 9 0
***
*
***
* *
***
***
  *
 *
*
*
***
* *
***
* *
***
***
* *
***
  *
***
***
* *
* *
* *
***

The input to the program is a natural number n (n <= 109).

Print this number as a picture on a pixel screen. Print each number on a new line. The order of the digits must match the order of the digits in the original number (that is, the first digit is displayed first, then the second, etc.). If there is nothing else in the string after the asterisk (*), then no spaces are required.

 
 
Examples
# Input Output
1 12
 *
 *
 *
 *
 *
***
  *
***
*
***