#include int main(void){ int i; char S[101]; int n = 0, flag = 0; scanf("%s", S); for(i = 0; S[i] != '\0'; i++){ if(flag == 0 && S[i] == 'm') flag = 1; else if(flag == 1 && S[i] == 'i') flag = 2; else if(flag == 2 && S[i] == '-') flag = 2; else if(flag == 2 && S[i] == 'n'){ n++; flag = 0; } else flag = 0; } printf("%d\n", n); return 0; }