using System; using System.Text; using System.Linq; namespace ConsoleApp11 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); int count = 0; string str = S.Replace("-", ""); str.ToCharArray(); for(int i = 0; i < str.Length - 2; i += 3) { if(str[i] == 'm' && str[i+1] == 'i' && str[i+2] == 'n') { count++; } } Console.WriteLine(count); } } }