#include int main(void){ int i, m=0; char s[100]; scanf("%s", s); for(i = 0; i < 100; i++){ if(s[i] == 'm') m++; } printf("%d\n", m); return 0; }