S=input() while S and S[0]=="w": S=S[1:] X=[] now=0 for i in range(len(S)-1): if (S[i]=="w" and S[i+1]!="w"): X.append(S[now:i+1]) now=i+1 elif i==len(S)-2 and S[-1]=="w": X.append(S[now:]) best=-1 ANS=[] for x in X: k=x.count("w") if best