#include #include #include #include using namespace std; string s; int main(){ cin >> s; int cnt_c = 0, cnt_w = 0; for(int i=0, n = s.size(); i cnt_w){ cout << cnt_w << endl; } return 0; }