#P5730. LCD Display of Digits
LCD Display of Digits
LCD Display of Digits
Each Arabic numeral is displayed on an LCD screen using a $3\times5$ dot matrix (an X represents a lit pixel and a . represents an unlit pixel). Given the number of digits (not exceeding 100) and a string of digits, output the LCD display of these digits. Note that there is exactly one column (a single space) separating consecutive digits.
inputFormat
The input consists of two lines. The first line contains an integer N (1 ≤ N ≤ 100), representing the number of digits. The second line contains a string of N digits (0-9).
outputFormat
Output exactly 5 lines. Each line represents one row of the dot matrix display for all input digits. Each digit is rendered as a 3-character string according to its pattern and a single space column separates adjacent digits.
sample
2
12
..X XXX
..X ..X
..X XXX
..X X..
..X XXX
</p>