#include using namespace std; using ll = long long; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> s; stringstream ss; for(char c : s){ if(c!='-') ss << c; } string t = ss.str(); ll L = t.size(); ll count = 0; FOR(i, 0, L-2){ if(t[i]=='m' && t[i+1]=='i' && t[i+2]=='n') count++; } p(count); return 0; }