#coding: utf-8 ##yuki_346 import scipy.misc as scm s=list(raw_input()) sc=[] sw=[] for i in xrange(len(s)): if s[i]=='c': sc.append(i) elif s[i]=='w': sw.append(i) res=0 for i in xrange(len(sc)): count=0 for j in xrange(len(sw)): if sc[i]