#include #include int main(){ std::vector v; char ctemp; int count = 0; while ( std::cin >> ctemp ) v.push_back(ctemp); for (int i = v.size() - 1; i >= 0; i--) { if ( v[i] == '-' ) v.erase(v.begin() + i); } for (int i = 0; i < v.size(); i++) { if (v[i] == 'm' && v[i+1] == 'i' && v[i+2] == 'n') count++; } std::cout << count << std::endl; }