#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int n=0;
	char a[100];
	cin>>a;
	for(int i=1;a[i]!='\0';i++){
		if(a[i]==a[i-1])
		a[i-1]='\0';
		n++;
	}
	for(int i=0;i<=n;i++){
		if(a[i]=='\0'){
			i++;
		}
		cout<<a[i];
	}
	return 0;
}