#include int main(void){ // Here your code ! int b,c=0; char a[99]; scanf("%s",a); for(b=0;b<=99;b++){ if(a[b]=='m'){ c+=1; } } printf("%d",c); }