#include #include using namespace std; int nC2(int a){ if( a < 2) return 0; return a * (a-1) / 2 ; } int main() { // your code goes here vector vec; int ans = 0; for(char ch; cin >> ch;) if((ch == 'c' || ch == 'w')) vec.push_back(ch); for(int i = 0; i