import itertools
from collections import defaultdict
n = int(input())
xy = [list(map(int, input().split())) for _ in range(n)]
dd = defaultdict(int)
for xy1, xy2 in itertools.combinations(xy, 2):
    x1, y1 = xy1
    x2, y2 = xy2
    unit_vect = (x1-x2, y1-y2)
    dd[unit_vect] += 1
    unit_vect = (x2-x1, y2-y1)
    dd[unit_vect] += 1

if n == 1:
    ans = 1
else:
    ans = n-max(dd.values())
print(ans) import itertools itertools from collections import defaultdict n = int(input()) n int(input()) int input() input list(map(int, input().split())) for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split xy = [list(map(int, input().split())) for _ in range(n)] xy [list(map(int, input().split())) for _ in range(n)] dd = defaultdict(int) dd defaultdict(int) defaultdict int for xy1, xy2 in itertools.combinations(xy, 2):
    x1, y1 = xy1
    x2, y2 = xy2
    unit_vect = (x1-x2, y1-y2)
    dd[unit_vect] += 1
    unit_vect = (x2-x1, y2-y1)
    dd[unit_vect] += 1 xy1 xy2 itertools.combinations(xy, 2) itertools.combinations itertools combinations xy 2 x1, y1 = xy1 x1 xy1 y1 x2, y2 = xy2 x2 xy2 y2 unit_vect = (x1-x2, y1-y2) unit_vect (x1-x2, y1-y2) x1-x2 x1 x2 y1-y2 y1 y2 dd[unit_vect] += 1 dd[unit_vect] dd unit_vect 1 unit_vect = (x2-x1, y2-y1) unit_vect (x2-x1, y2-y1) x2-x1 x2 x1 y2-y1 y2 y1 dd[unit_vect] += 1 dd[unit_vect] dd unit_vect 1 if n == 1:
    ans = 1
else:
    ans = n-max(dd.values()) n == 1 n 1 ans = 1 ans 1 ans = n-max(dd.values()) ans n-max(dd.values()) n max(dd.values()) max dd.values() dd.values dd values print(ans) print ans dd = defaultdict(int) defaultdict(int) dd x2, y2 = xy2 xy2 x2 y1 = xy1 xy1 y1 ans = n-max(dd.values()) n-max(dd.values()) ans n = int(input()) int(input()) n unit_vect = (x2-x1, y2-y1) (x2-x1, y2-y1) unit_vect x1, y1 = xy1 xy1 x1 xy = [list(map(int, input().split())) for _ in range(n)] [list(map(int, input().split())) for _ in range(n)] xy y2 = xy2 xy2 y2 unit_vect = (x1-x2, y1-y2) (x1-x2, y1-y2) unit_vect ans = 1 1 ans
import itertools
from collections import defaultdict
n = int(input())
xy = [list(map(int, input().split())) for _ in range(n)]
dd = defaultdict(int)
for xy1, xy2 in itertools.combinations(xy, 2):
    x1, y1 = xy1
    x2, y2 = xy2
    unit_vect = (x1-x2, y1-y2)
    dd[unit_vect] += 1
    unit_vect = (x2-x1, y2-y1)
    dd[unit_vect] += 1

if n == 1:
    ans = 1
else:
    ans = n-max(dd.values())
print(ans)