#K76267. Remove Consecutive Duplicate Characters
Remove Consecutive Duplicate Characters
Remove Consecutive Duplicate Characters
You are given a string s. Your task is to remove all consecutive duplicate characters from the string and output the resulting string.
For example, if the input string is 'aabbcc', then the output should be 'abc'.
If the string is empty, simply output an empty string.
The solution must read input from standard input (stdin) and write the result to standard output (stdout).
inputFormat
The input consists of a single line containing the string s (which may be empty).
outputFormat
Output a single line containing the string after removing all consecutive duplicate characters.
## sampleaabbcc
abc