#include #include #include #include #include int main() { char str[101] = ""; char min[4] = ""; int cnt = 0; int minCnt = 0; scanf("%s", str); for (int i = 0;str[i] != '\0';i++) { if (str[i] == '-') { continue; } min[cnt] = str[i]; cnt++; if (cnt == 3) { cnt = 0; if (strcmp("min", min) == 0) { minCnt++; } } } printf("%d\n", minCnt); return 0; }