Signal from space

Signal from space

Description

One day a signal from space was registered. Scientists managed to record the signal as a sequence of N symbols. 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

You will receive an array of single element (the recorded signal) as the only parameter of solve(args) function

  • Note: see sample tests

Output

Print to the standard output, i.e. with the console.log() method

  • Print the decoded message

Constraints

  • The length of the message will be no more than 10000 symbols
  • Message consists of digits and latin letters (upper and lower case)

Sample tests

Sample test 1

Input

solve(['Hello']);

Output

Helo

Sample tests

Sample test 2

Input

solve(['hoboobbo422222Aaao']);

Output

hobobo42Aao