using System; class Program { static void Main() { string s = Console.ReadLine(); string t = Console.ReadLine(); s = s + t; int cnt=0,ans=0; for (int i = 0; i < s.Length; i++) { if (s[i] == 'o') { cnt++; } else { cnt = 0; } ans = Math.Max(cnt, ans); } Console.WriteLine(ans); } }