#yuki_418 s=raw_input() r=s.replace("-","") t=r.count("min") print t