#include #include using namespace std; int main(){ string S; cin>>S; if(S.size()<2){ cout<=0;i--){ if(S.at(i)==S.at(i+1)){ S.erase(i+1,1); } } cout<