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(S[i] == 'm' && S[i+1] == 'i' && S[i+2] == 'n') { count++; } } Console.WriteLine(count); } } }