i=1 for k in raw_input(): i+=1 if"="==k:i-=8;print i/6