s=input().replace("-","") print(s.count("min"))