PROGRAMMING:Morse code
Have you ever seen spy drama? Most of them have the plot of sending telegrams. Is it cool to send telegrams in a tick like manner< br>
The scientific name of the thing that sends the message is "electric key", as shown in the figure:
![ Key. JPG] (~ / c6005b5e-b9d0-47c1-a0ba-3eb0e96ce93. JPG)
After pressing the key, the circuit will be connected and sound will be generated. Different sound combinations of different lengths will form different codes, which can represent different information ~ < br > in the system
There are too many Chinese characters, so the coding of Chinese characters is very complicated. However, with fewer English letters, coding is much easier < br > than before
Today we are going to study Morse code, an internationally used telegraph code< br>
We use "Di ~" to simulate the sound of a short press of a key, which is represented by a dot: '.' < br > we use "Di ~" to simulate the sound of a short press of a key
"Da ~" is used to simulate the sound of long press of key, and a dash is used to indicate: '-' < br > the answer is "Da ~"
The Morse code of English letters and numbers is: < br > 0
* A .-
* B -...
* C -.-.
* D -..
* E .
* F ..-.
* G --.
* H ....
* I ..
* J .---
* K -.-
* L .-..
* M --
* N -.
* O ---
* P .--.
* Q --.-
* R .-.
* S ...
* T -
* U ..-
* V ...-
* W .--
* X -..-
* Y -.--
* Z --..
* 0 -----
* one .----
* two ..---
* three ...--
* four ....-
* five .....
* six -....
* seven --...
* eight ---..
* nine ----.
< br>
For example, the Morse code of SOS is: '... ---...' (one space in the middle of each letter) < br > the Morse code of SOS is the Morse code of SOS
Now please turn the input code into text and the input text into code.
###Input format:
The first line is a positive integer 'n', < br > and
The next 'n' line contains no more than 200 characters of text or code per line< br>
We call a continuous string of letters or numbers a "word". The input text format is: there is a space between each word, there is no space at the beginning and end of the text, such as' CQ CQ '. The text consists of only capital letters, numbers and spaces< br>
The format of the input code is: there is a space between the letter codes or number codes in each word, and each word is separated by '|', for example '-. -. -. -. -. -. -. -. -' (the code of text 'CQ, CQ'))
###Output format:
For each line of input text or code, the corresponding format is adopted, and the corresponding code or text is given in one line.
###Input example:
```in
two
-.-. --.-|-.-. --.-|-.-. --.-|-.. .|-... -.. ..... .... .-.. .-|-... -.. ..... .... .-.. .-|-.-
CQ CQ CQ DE BD5HLA BD5HLA K
```
###Output example:
```out
CQ CQ CQ DE BD5HLA BD5HLA K
-.-. --.-|-.-. --.-|-.-. --.-|-.. .|-... -.. ..... .... .-.. .-|-... -.. ..... .... .-.. .-|-.-
```
answer:If there is no answer, please comment
The scientific name of the thing that sends the message is "electric key", as shown in the figure:
![ Key. JPG] (~ / c6005b5e-b9d0-47c1-a0ba-3eb0e96ce93. JPG)
After pressing the key, the circuit will be connected and sound will be generated. Different sound combinations of different lengths will form different codes, which can represent different information ~ < br > in the system
There are too many Chinese characters, so the coding of Chinese characters is very complicated. However, with fewer English letters, coding is much easier < br > than before
Today we are going to study Morse code, an internationally used telegraph code< br>
We use "Di ~" to simulate the sound of a short press of a key, which is represented by a dot: '.' < br > we use "Di ~" to simulate the sound of a short press of a key
"Da ~" is used to simulate the sound of long press of key, and a dash is used to indicate: '-' < br > the answer is "Da ~"
The Morse code of English letters and numbers is: < br > 0
* A .-
* B -...
* C -.-.
* D -..
* E .
* F ..-.
* G --.
* H ....
* I ..
* J .---
* K -.-
* L .-..
* M --
* N -.
* O ---
* P .--.
* Q --.-
* R .-.
* S ...
* T -
* U ..-
* V ...-
* W .--
* X -..-
* Y -.--
* Z --..
* 0 -----
* one .----
* two ..---
* three ...--
* four ....-
* five .....
* six -....
* seven --...
* eight ---..
* nine ----.
< br>
For example, the Morse code of SOS is: '... ---...' (one space in the middle of each letter) < br > the Morse code of SOS is the Morse code of SOS
Now please turn the input code into text and the input text into code.
###Input format:
The first line is a positive integer 'n', < br > and
The next 'n' line contains no more than 200 characters of text or code per line< br>
We call a continuous string of letters or numbers a "word". The input text format is: there is a space between each word, there is no space at the beginning and end of the text, such as' CQ CQ '. The text consists of only capital letters, numbers and spaces< br>
The format of the input code is: there is a space between the letter codes or number codes in each word, and each word is separated by '|', for example '-. -. -. -. -. -. -. -. -' (the code of text 'CQ, CQ'))
###Output format:
For each line of input text or code, the corresponding format is adopted, and the corresponding code or text is given in one line.
###Input example:
```in
two
-.-. --.-|-.-. --.-|-.-. --.-|-.. .|-... -.. ..... .... .-.. .-|-... -.. ..... .... .-.. .-|-.-
CQ CQ CQ DE BD5HLA BD5HLA K
```
###Output example:
```out
CQ CQ CQ DE BD5HLA BD5HLA K
-.-. --.-|-.-. --.-|-.-. --.-|-.. .|-... -.. ..... .... .-.. .-|-... -.. ..... .... .-.. .-|-.-
```
answer:If there is no answer, please comment