s=0 for c in raw_input(): s+=c=="c" if c=="=":s-=1;print s