#include using namespace std; int main(void) { string s; cin >> s; bool flag = 0; int count = 0; int now,ans=-1; for (int i = 0; i < s.length(); ++i) { count=0; if (s[i] == 'c') { now=i; while (i < s.length()) { i++; if(s[i]=='w'&&count==0){ count++; }else if(s[i]=='w'&&count==1){ ans=i-now+1; } } } } cout<