/* -*- coding: utf-8 -*- * * 418.cc: No.418 ミンミンゼミ - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { string s; cin >> s; int cnt = 0; for (int i = 0; i < s.size(); i++) if (s[i] == 'm') cnt++; printf("%d\n", cnt); return 0; }