#SDNU1312. Morse code

Morse code

Description

Intelligencer Jason has just intercepted a cipher text, after seven days and nights he found the function how to crack the cipher, Jason’s ability of programming is pooooooor, so he comes to you to do him a favor.

May you will not accept the request, but you must to do these job because Jason has just recommend you to the XiDada.

Encryption Format:

alt text

alt text

Followed by the rule of encryption format: The plaintext is “ACM_GREATER_NY_REGION”, after encrypted the cipher is “.- -.-. -- ..-- --. .-. . .- - . .-. ..-- -. -.-- ..-- .-. . --. .. --- -.” It is illegibility! You can decrypt the cipher “.--.-.--” to “ACM” or “ANY”, so Jason marked the cipher characters which need to be decrypted together by a series of numbers, like “.--.-.--242”, each number represents the length of the characters after encrypted into the cipher, so the cipher can be “ACM”.

You think it will be over? No! Jason hates the programmer, so raise the lever of the difficulty.

Before you decrypt the cipher in accordance with the number followed by the cipher you need to reverse these numbers.Like that:

Cipher: “AKADTOF_IBOETATUK_IJN”

Middle_Cipher: “.--.-.--..----..-...--..-...---.-.--..--.-..--...----。232313442431121334242”

Plaintext: “ACM_GREATER_NY_REGION”

Format

Input

Cipher(the length is no more than 100).

Output

Plaintext

Samples

AKADTOF_IBOETATUK_IJN
ACM_GREATER_NY_REGION