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; int maxValue = 0; while (front < line.Length) { var index = line.IndexOf ("…", front); if (index < 0) { maxValue = Math.Max (count, maxValue); break; } if (index != front) { front = index; maxValue = Math.Max (count, maxValue); count = 0; } else { front++; count++; } } Console.WriteLine (maxValue.ToString ()); } } }