c=2 for e in raw_input(): if'='==e:c-=8;print c/6 c+=1