S=input() stack='' i=j=0 ans=len(S) found=0 while i=1 and x.count('w')>=2 and x.index('c')