def main(argv)
  n = gets.chomp.to_i
  
  ps = [nil] * n
  n.times do |i|
    (x, y) = gets.chomp.split(' ').map(&:to_i)
    ps[i] = {:x => x, :y => y}
  end
  
  ans = 1e+9.to_i
  n.times do |i|
    n.times do |j|
      next if i == j
      
      dx = ps[j][:x] - ps[i][:x]
      dy = ps[j][:y] - ps[i][:y]
      
      count = 0
      flag = [false] * n
      n.times do |k|
        next if flag[k]
        flag[k] = true
        count += 1
        
        m = 1
        while true do
          q = {:x => ps[k][:x] + m * dx, :y => ps[k][:y] + m * dy}
          qi = ps.find_index(q)
          if qi == nil then
            break
          else
            if flag[qi] then
              break
            else
              flag[qi] = true
            end
          end
          m += 1
        end
      end
      
      ans = [ans, count].min
    end
  end
  
  puts ans.to_s
end

if self.to_s == 'main' then
  main(ARGV)
end