cnt = gets.chomp.to_i
current = []
cost = 0
boals = []
total = []

cnt.times do
  position = gets.chomp.split(" ").map(&:to_i)
  boals << position
end

if 2 >= cnt
  cost = 1
else
  boals.count.times do |i|
    tmp = []
    boals.count.times do |n|
      if n == i
        next
      end
      first_boal = boals[i]
      s = [boals[n][0] - boals[i][0], boals[n][1] - boals[i][1]]
      tmp << s
    end
    total << tmp
  end
end

def dup_hash(ary)
  ary.inject(Hash.new(0)) { |h,e| h[e] += 1; h }.select { 
    |_k,v| v > 1 }.inject({}) { |r, e| r[e.first] = e.last; r }
end

p dup_hash(total)
  