#include using namespace std; typedef long long ll; #define int ll #define _FastIO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0) #define pb emplace_back #define pii pair #define F first #define S second const int mod = 1000000007; const int MAXX = 1e6 + 5; string s; signed main() { _FastIO; cin >> s; string g = ""; g += s[0]; for(int i = 1; i < s.size(); i++){ if(s[i] != s[i - 1]) g += s[i]; } cout << g << endl; return 0; }