#define _GLIBCXX_DEBUG #define ll long long #include using namespace std; using Graph = vector>; int main(){ string S; cin >> S; string ans = ""; char C = S[0]; ans += C; for(int i = 1; i < (int)S.size(); i++){ if(S[i] != C) ans += S[i]; C = S[i]; } cout << ans << endl; }