(3..10).each{|sailors| puts "Number of sailors = #{sailors}"; p ng(sailors)}