#include int main() { char s; int cnt = 0; while ((s = getchar()) != '\n') { if (s == 'm') cnt++; } printf("%d\n", cnt); return 0; }