#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; string t; for(int i = 0; i < s.size(); i++) { if(s[i] != '-') t += s[i]; } int ans = 0; for(int i = 0; i <= t.size() - 3; i++) { if(t.substr(i, 3) == "min") { ans++; } } cout << ans << endl; return 0; }