do local s,c,w,f=io.stdin:read("*a"),0,0,string.sub for i=1,#s-1 do if f(s,i,i)=="c" then c=c+1 else w=w+1 end end c=c-1 print(c