DMPG '19 B4 - Braille

View as PDF

Submit solution


Points: 5
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

Braille is a well-known writing system used by the visually impaired. In the Braille alphabet, each character is represented by a rectangle 3 units high and 2 units wide, and each cell in the rectangle can either contain a dot (o) or be blank (.). The translations from English to Braille characters are as follows:

English Braille English Braille English Braille
A o.
..
..
K o.
..
o.
U o.
..
oo
B o.
o.
..
L o.
o.
o.
V o.
o.
oo
C oo
..
..
M oo
..
o.
W .o
oo
.o
D oo
.o
..
N oo
.o
o.
X oo
..
oo
E o.
.o
..
O o.
.o
o.
Y oo
.o
oo
F oo
o.
..
P oo
o.
o.
Z o.
.o
oo
G oo
oo
..
Q oo
oo
o.
(space) ..
..
..
H o.
oo
..
R o.
oo
o.
I .o
o.
..
S .o
o.
o.
J .o
oo
..
T .o
oo
o.

To make sure the DMPG problems are accessible by everyone, Roger has decided to create and print Braille translations of them. Please help him do this!

Input Specification

One line consisting of no more than 1\,000 characters, all of which are either uppercase English letters or spaces.

Output Specification

The Braille translation of the given string, on three lines. There should not be any spaces between the Braille characters.

Sample Input

BRAILLE IS A WELL KNOWN

Sample Output

o.o.o..oo.o.o....o.o..o....oo.o.o...o.ooo..ooo
o.oo..o.o.o..o..o.o.......oo.oo.o......o.ooo.o
..o.....o.o.......o........o..o.o...o.o.o..oo.

Comments

There are no comments at the moment.