#include main(){ char S[101]; scanf("%s",S); int count = 0; for(int i = 0;S[i] != '\0';i++){ if(S[i] == 'm'){count++;} } printf("%d\n",count); }