#include #define rep(i, n) for (int i = 0; i < n; ++i) typedef long long ll; using namespace std; int main() { string S; cin >> S; S.erase(unique(S.begin(), S.end()), S.end()); cout << S << endl; return 0; }