c1 = gets.chomp c2 = gets.chomp puts (c1 + c2).each_char.chunk { _1 }.filter_map { |x, y| y.size if x == 'o' }.max || 0