#include int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); std::string S,ans; std::cin>>S; int32_t now=0; for(int32_t i=0;i<(int32_t)(S.size()-1);i++) { if(S[i]==S[i+1]) { ans+=S[i]; i++; } else { ans+=S[i]; } now=i; } if(now==S.size()-2) { ans+=S[S.size()-1]; } std::cout<