Problem Description

Repeatedly remove adjacent equal characters. Print the final string.

Input Format

One line string s.

Output Format

One line final string.

Sample Test Case

Input:
abbaca
Output:
ca

Constraints

|s|

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next