using System; public class Program { public static void Main(string[] args) { string s = Console.ReadLine() + Console.ReadLine(); char[] c = s.ToCharArray(); int count = 0; int max = 0; for (int i = 0; i < c.Length; i++) { if (c[i].Equals('o')) { count++; } else { count = 0; } if (count > max) { max = count; } } Console.WriteLine(max); } }