Calculator
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Write a program that simulates a calculator display, showing the image of a number as it would appear on such a display. The sign of the number should be displayed directly before the first digit.
The image of each digit or sign is created by turning on or off seven segments of a liquid crystal display. The program should print the display state using the symbols '|' (vertical bar), '_' (underscore), and ' ' (space). The digits and the minus sign on the display should be depicted as follows:
Each character is displayed as a 3 by 3 matrix of symbols (including trailing spaces in each row).
Input
An integer N (|N| < 10^10).
Output
The representation of the number on the calculator display.
An example of the output data is shown in the figure:
Examples
Input #1
Answer #1
Submissions 962
Acceptance rate 40%