Morza code & mdash; This is a way of coding symbols using sequences of points and dash. Each letter, figure or punctuation mark has its own unique code.
rn
.... .. . And the message "Hey Jude" & mdash; & nbsp; ..... --.----- ..--... .
rn
there is also a special code for the disaster signal SOS, which is transmitted Superior: & nbsp; & middot; & middot; & middot; & minus; & minus; & minus; & middot; & middot; & middot; . This code should be processed as a single indivisible symbol "SOS".
rn
your task & mdash; Write a program that takes a line with the Morse code to the input and decodes it into a text that is understandable to a person. All letters in the final message should be title. Additional gaps at the beginning or at the end of the input line should be ignored.
Input format
One line containing a message on the Morse code. Symbols & nbsp; .
Output format
One line & mdash; Decoded message in the upper register in English.
Hint
There will be no clue here, decide for yourself!