C = (gets + gets).chomp ans = if C.include?("o") C.gsub("\n", "").split("x").map(&:size).max else 0 end puts ans