#include #define NIL (-1) #define ll long long using namespace std; const int64_t MOD = 1e9 + 7; const int INF = INT_MAX; const double PI = acos(-1.0); int main() { string S; cin >> S; S.erase(unique(S.begin(), S.end()), S.end()); cout << S << endl; }