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