#C8893. Remove Consecutive Duplicate Characters

    ID: 52925 Type: Default 1000ms 256MiB

Remove Consecutive Duplicate Characters

Remove Consecutive Duplicate Characters

You are given a string s consisting of lowercase letters. Your task is to remove all consecutive duplicate characters from the string. In other words, if the same character appears consecutively, only its first occurrence should be kept.

For instance, given the input string aabcca, the expected output is abca. This problem tests your ability to process strings and handle consecutive duplicate elements.

Note: The input string is guaranteed to contain at least one character.

inputFormat

The input consists of a single line containing a non-empty string s composed solely of lowercase letters.

outputFormat

Output the string after removing all consecutive duplicate characters.

## sample
a
a