Signal from space
One day a signal from space was registered. Scientists managed to record the signal as a sequence of
It turned out that due to a technical difficulty some symbols have been repeated.
Help the scientists by writing a program which removes consecutive repetitions of symbols, decoding the message.
Input data is read from the standard input (the console)
- On the only input line a message is given
Print to the standard output
- Print the decoded message
- The length of the message will be no more than
- Message consists of digits and latin letters (upper and lower case)
Sample test 1
Sample test 2