string@S; int ans = 1d9; VI s; rep(i, S.size()) { if(S.substr(i, 3) == "ccw") s.push_back(i); } if(s.empty()) cout << 0 << "\n"; else { ans