n=gets.to_i
a=Array.new(n){gets.split.map(&:to_i)}
ary=[]
(0...n-1).each do |i|
  ary<<[ a[i+1][0] -a[i][0], a[i+1][1] -a[i][1] ]
end
ary_num=[]
ary.each do |i,j|
  ary_num<<ary.count([i,j])
end
puts ary_num.uniq.inject(:+)-ary_num.uniq.max+1