#include #include int main(){ // 入力された文字列 char str[100]; scanf("%s",&str); // 入力された文字列の文字数 int len = strlen(str); // 蝉のなき声をカウントする int count = 0; for(int i = 0;i < len;i++){ if(str[i] == 'm' && str[i + 1] == 'i'){ count++; } } printf("%d",count); }