#include #include #include #include using namespace std; int main() { string s; cin >> s; int ans = 0; bool c = false,w = false; for(int i = 0;i < s.length();i++){ if(s[i] == 'c'){ c = true; } else if(!w && s[i] == 'w'){ c = false; w = true; } else if(w && s[i] == 'w'){ w = false; } if(c)ans++; if(w)ans++; } cout << ans; return 0; }