By Juliane Alves, UFRGS Brazil
Joana likes to play pretending to be a secret agent with her friends Bruna, Jaqueline and Laura. Joana and Bruna have created a secret code to communicate without their enemies discovering their plans. The secret code works as follows:
. → a
.. → b
... → c
. . → d
.. .. → e
... ... → f
. . . → g
.. .. .. → h
... ... ... → i
Your goal is to create a program that decipher the secret messages and help Jaqueline and Laura find out what Joana and Bruna are planning.
The input contains several test cases. The first line of each test should contain an integer (N ≤ 50), which represents the number of letters to be deciphered and the next N lines contain the code for each letter.
A string represented by the letter of the alphabet corresponding to the input code. Each string must be separated from the other by a new line.
Input Sample | Output Sample |
2 |
o |