


You don't have to print anything, it has already been taken care of. Just implement the given function.
The first and the only line of input contains a string 'STR' with no space in between the characters.
Print the final string after removing all the consecutive duplicates.
1 <= |S| <= 10^5
Where |S| represents the length of the string.
Time limit: 1 sec
Let our input string be
str = <str[0], str[1], … str[n - 1]>where str[i] denotes the i'th character of the string and n denotes the length of the string.