//#include #include #include using namespace std; //using namespace atcoder; using ll = long long; #define all(A) A.begin(),A.end() using vll = vector; #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) using Graph = vector>; Graph G; vll E; vector seen; int main() { string S; cin>>S; ll an=0; rep(i,S.size()){ an+=(S[i]=='m'); } cout<