#include "bits/stdc++.h" using namespace std; #define print(x) cout< PI; typedef pair V; typedef vector VE; const ll mod = 100000000000; using namespace std; int main() { string s; int cnt=0,len; int a=101; cin>>s; while(s.find('c')!=-1){ cnt=0; rep(i,s.find('c'),s.length()){ print(i); if(s[i]=='w')cnt+=1; if(cnt==2){ len=i-s.find('c')+1; a=min(a,len); print("a="<