#include/*セミの鳴き声カウント*/ int main(void){ int cnt=0,i=0; char str[101]; scanf("%s",str); while(str[i] != '\0'){ if(str[i] == 'm'){ while(str[i] != 'n') i++; cnt++; } i++; } printf("%d\n",cnt); return 0; }