|
|||
In BrailleThe Braille system, designed by Louis Braille in 1825, revolutionized written communication for blind and visually impaired persons. Braille, a blind Frenchman, developed a tactile language where each element is represented by a cell with six dot positions, arranged in three rows and two columns. Each dot position can be raised or not, allowing for 64 different configurations which can be felt by trained fingers. The figure below shows the Braille representation for the decimal digits (a black dot indicates a raised position). In order to develop a new software system to help teachers to deal with blind or visually impaired students, a Braille dictionary module is necessary. Given a message, composed only by digits, your job is to translate it to or from Braille. Can you help? Input Specification
Each test case is described using three or five lines. The first line contains an
integer D representing the number of digits in the message
(1 ≤ D ≤ 100). The second line contains a
single uppercase letter “ The last test case is followed by a line containing one zero. Output SpecificationFor each test case, print just the digits of the corresponding translation, in the same format as the input (see the examples for further clarification). Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |