def lscan; gets.split.map(&:to_i); end pts = gets.to_i.times.map{lscan} p pts.combination(2).to_a.map{|pt1, pt2| pts.count {|pt| (pt1[1] - pt2[1]) * (pt[0] - pt2[0]) == (pt[1] - pt2[1]) * (pt1[0] - pt2[0])} }.max