Freddy found a new way to grow much bigger cauliflowers. He wants to hand the method to his fellow gardener Tommy without letting anyone else steal it, so the two of them agreed on a simple encryption technique proposed by M. E. Ohaver.
The technique is built on Morse code, which writes every character as a sequence of dots and dashes whose length varies from character to character. These are the sequences for the twenty-six capital letters.
| Letter | Code | Letter | Code | Letter | Code | Letter | Code |
|---|---|---|---|---|---|---|---|
| A | .- | H | .... | O | --- | V | ...- |
| B | -... | I | .. | P | .--. | W | .-- |
| C | -.-. | J | .--- | Q | --.- | X | -..- |
| D | -.. | K | -.- | R | .-. | Y | -.-- |
| E | . | L | .-.. | S | ... | Z | --.. |
| F | ..-. | M | -- | T | - | ||
| G | --. | N | -. | U | ..- |
Sixteen combinations of dots and dashes have length four, and real Morse code leaves four of them unused. This problem gives those four the characters below. They are not the assignments of real Morse code.
| Character | Code |
|---|---|
_ underscore | ..-- |
, comma | .-.- |
. period | ---. |
? question mark | ---- |
A short pause separates the characters of a message and is normally written as a space, so the text ACM_GREATER_NY_REGION goes out as
.- -.-. -- ..-- --. .-. . .- - . .-. ..-- -. -.-- ..-- .-. . --. .. --- -.
Ohaver's scheme mutilates Morse code by deleting the pauses between characters. The pauses carry real information, because Morse code has no fixed length and is not prefix free. Read .--.-.-- with the pauses gone and 108 different texts fit it, among them ACM, AKW, and ANY. The scheme therefore keeps a string of digits beside the dots and dashes, one digit per character, holding the length of that character's code. Written as .--.-.-- 242, the message is unambiguous again.
Encryption and decryption run the same three steps.
Run the steps on the encrypted message AKADTOF_IBOETATUK_IJN. Step 1 produces
.--.-.--..----..-...--..-...---.-.--..--.-..--...----. 232313442431121334242
Step 2 reverses the digits.
242433121134244313232
Cutting the same dots and dashes with those lengths gives back ACM_GREATER_NY_REGION.
The scheme is not very secure, but Freddy is satisfied with it. Write the program that runs it for him.
The input holds several messages encrypted with Ohaver's algorithm, one message per line. Each message uses only the twenty-six capital letters, the underscore, the comma, the period, and the question mark. No message is longer than 1000 characters. The input ends at end of file.
For each message in the input, print the decrypted message on one line.