#include using namespace std; signed main(){ string s;cin>>s; int ans=0; bool f=false; s+="###"; for(int i=0;i