ans = 0 t = 0 2.times do gets.chomp.chars.each do |c| if c == 'x' t = 0 else t += 1 end ans = [ans, t].max end end puts ans