#include #include using namespace std; int main(){ string S; cin >> S; int ans=0; int Slen=S.size(); for(int i=0;i