#include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { string s; cin >> s; int c = 0; for (int i = 0; i < s.length(); i++) { if (s[i] == '-') { s.erase(i, 1); i--; } } for (int i = 0; i < s.length()-2; i+=3) { if (s[i] == 'm' &&s[i + 1] == 'i' &&s[i + 2] == 'n')c++; } cout << c << endl; return 0; }