’‘’
include [HTML_REMOVED]
using namespace std;
const int N = 200005;
char str[N];
int top;
int main(){
char s;
while(cin >> s){
if(s == str[top - 1]){
top–;
}else{
str[top] = s;
}
}
for(int i = 0; i < top; i){
printf(“%c”, str[i]);
}
return 0;
}
‘’‘