#include using namespace std; int main(){ string s; cin>>s; int ans=count(s.begin(),s.end(),'m'); cout<