using System; class Program { static void Main(string[] args) { int maxRest = 0; var str = ""; for (int i = 0; i < 2; i++) str += Console.ReadLine(); int count = 0; for (int i=0; i < str.Length; i++) { if (str[i] == 'o') { count++; maxRest = Math.Max(maxRest, count); } else count = 0; } Console.WriteLine(maxRest); } }