N = gets.to_i
xy = []
N.times { |i|xy << gets.split.map(&:to_i) }

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

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