407215: GYM102697 186 Radio Filtration
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
186. Radio Filtrationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output This problem is worth 15 points.
You're listening to the radio, and you have a "voice to text" machine that transcribes the radio's words. The machine transcribes some of the static of the radio, however, which it writes as certain random characters. The machine writes an underscore character before and after any static that it transcribes. Your task is to filter out the static and print the original message.
For example, if the machine transcribed "hello wor_xxxxxxxhsfdjsdkkdsfds_ld coderams", the filtered out text would be "hello world coderams".
InputThe only line of input contains a line of text, following the rules above.
OutputOutput a single line: the text, after filtering out the static, as described above.
ExamplesInputhellowor_*%^&&^%&^&%*_ldcoder_%^%^_amsOutput
helloworldcoderamsInput
hello_***_helloOutput
hellohelloInput
_^*&^^&**&^*^&*&^*^&_code ram_^_s^^^Output
code rams^^^