#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define Would #define you const int INF = 999999999; const int MOD = 1e9 + 7; int main() { int mon; string h; cin >> h; mapm; for (auto&&i : h) { ++m[i]; } cout << min(m['c'] - 1, m['w']) << endl; }