def rollercoaster(man1,man2,man3,man4)
  man1 = man1
  man2 = man2
  man3 = man3
  man4 = man4
  mans = []
  mans << man1
  mans << man2
  mans << man3
  mans << man4
  mans = mans.map do |man|
    man <= 150
  end
  puts mans.count.slice!(0,4)
end

rollercoaster(150, 160, 140, 170)
      