#include int main() { char S[101]; int len, b = 0, count = 0; scanf("%s%n", &S, &len); for (int i = 0; i < len - 1; i++) { if (S[i] == 'm') { count++; } } printf("%d", count); return 0; }