#include using namespace std; typedef int64_t lint; int main() { string s; cin>>s; char stat=0; lint cnt=0; for(lint i=0;i!=s.size();i++){ if(stat=0&&s[i]=='m'){ stat='m'; }else if(stat=='m'&&s[i]=='-'){ stat='-'; }else if(stat='-'&&s[i]=='n'){ stat=0; cnt++; }else{ stat=0; } } cout<