N = gets.to_i
xy = []

N.times do |i|
  xy << gets.split.map(&:to_i)
end

xyc = Hash.new(0)
(N-1).times do |i|
  x, y = xy[i]
  (i+1).upto(N-1) do |j|
    x1, y1 = xy[j]
    xyc[ [(x-x1).abs, (y-y1).abs] ] += 1
  end
end

puts N - xyc.sort_by { |k, v| -v }.first[1]