S = raw_input() SS =S.replace("-","") SS.count("min")