using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication4 { class Program { static void Main(string[] args) { const char ELLIPSIS = '…'; string s = Console.ReadLine(); int cnt = 0; int maxCnt = 0; for (int i = 0; i < s.Length; i++) { if (s[i] == ELLIPSIS) { cnt++; if (cnt > maxCnt) { maxCnt = cnt; } } else { cnt = 0; } } Console.WriteLine(maxCnt); } } }