using System; using System.Collections.Generic; namespace Yukicoder { public static class Program { public static void Main (string[] args) { string line = Console.ReadLine (); int count = 0; int front = 0; while (front < line.Length) { var index = line.IndexOf ("...", front); if (index < 0) { break; } if (index != front) { front = index; } else { front += 3; count++; } } Console.WriteLine (count.ToString ()); } } }