#include
#include<string.h>
using namespace std;
void replace_dup(char s[], int i){
if(s[i]==β\0β){
return;
}
if(s[i]==s[i+1]){
int j=i;
while(s[j]!=β\0β){
s[j+1]=s[j+2];
j++;
}
replace_dup(s, i+1);
}
else{
replace_dup(s, i+1);
}
return;
}
int main() {
char s[1000];
cin>>s;
replace_dup(s, 0);
cout<<s<<endl;
return 0;
}
// itβs giving wrong answer i think in some test cases