#include //#include #define ll long long #define rep(i, n) for (int i = 0; i < (int)(n); i++) //namespace mp = boost::multiprecision; //mp::cpp_int /* nyuuryoku retu de ukeoru string s; getline(cin,s); */ using namespace std; signed main(){ string S; cin >> S; for(int i = 0; i < S.size() ; i++){ if(S.at(i) == S.at(i+1) && i+1 < S.size()){ S.erase(S.begin()+i); } } cout << S <