class Program { static void Main(string[] args) { string str = Console.ReadLine(); int count = 0; int max = 0; for (int i = 0; i < str.Length; i++) { if (str[i] == '…') { count++; } else { if(count > max) { max = count; } count = 0; } } if (count > max) { max = count; } Console.WriteLine(max); } }