import java.util.*; class Question418 { public static void main(String[] str){ Scanner scan = new Scanner(System.in); String s = scan.next(); int cnt=0; s = s.replaceAll("-",""); s = s.replaceAll("min","1"); for(int i=0;i