N = int(input())
XY = [list(map(int,input().split())) for _ in range(N)]

li = {}
for i in range(N):
    for j in range(N):
        if i==j:
            continue

        x1,y1 = XY[i][0],XY[i][1]
        x2,y2 = XY[j][0],XY[j][1]

        mm1 = x2-x1
        mm2 = y2-y1
        # if mm1<0 and mm2<0:
        #     mm1 *= -1
        #     mm2 *= -1
        PQ = (mm1, mm2)

        if PQ in li:
            li[PQ] += 1
        else:
            li[PQ] = 1

mm = 0
for i in li:
    mm = max(mm,li[i])
print(N-mm) 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)] li = {} li {} for i in range(N):
    for j in range(N):
        if i==j:
            continue

        x1,y1 = XY[i][0],XY[i][1]
        x2,y2 = XY[j][0],XY[j][1]

        mm1 = x2-x1
        mm2 = y2-y1
        # if mm1<0 and mm2<0:
        #     mm1 *= -1
        #     mm2 *= -1
        PQ = (mm1, mm2)

        if PQ in li:
            li[PQ] += 1
        else:
            li[PQ] = 1 i range(N) range N for j in range(N):
        if i==j:
            continue

        x1,y1 = XY[i][0],XY[i][1]
        x2,y2 = XY[j][0],XY[j][1]

        mm1 = x2-x1
        mm2 = y2-y1
        # if mm1<0 and mm2<0:
        #     mm1 *= -1
        #     mm2 *= -1
        PQ = (mm1, mm2)

        if PQ in li:
            li[PQ] += 1
        else:
            li[PQ] = 1 j range(N) range N if i==j:
            continue

         i==j i j continue x1,y1 = XY[i][0],XY[i][1] x1 XY[i][0] [i] XY i 0 y1 XY[i][1] [i] XY i 1 x2,y2 = XY[j][0],XY[j][1] x2 XY[j][0] [j] XY j 0 y2 XY[j][1] [j] XY j 1 mm1 = x2-x1 mm1 x2-x1 x2 x1 mm2 = y2-y1 mm2 y2-y1 y2 y1 PQ = (mm1, mm2) PQ (mm1, mm2) mm1 mm2 if PQ in li:
            li[PQ] += 1
        else:
            li[PQ] = 1 PQ in li PQ li li[PQ] += 1 li[PQ] li PQ 1 li[PQ] = 1 li[PQ] li PQ 1 mm = 0 mm 0 for i in li:
    mm = max(mm,li[i]) i li mm = max(mm,li[i]) mm max(mm,li[i]) max mm li[i] li i print(N-mm) print N-mm N mm XY = [list(map(int,input().split())) for _ in range(N)] [list(map(int,input().split())) for _ in range(N)] XY mm2 = y2-y1 y2-y1 mm2 x2,y2 = XY[j][0],XY[j][1] XY[j][0] x2 mm1 = x2-x1 x2-x1 mm1 PQ = (mm1, mm2) (mm1, mm2) PQ li = {} {} li y2 = XY[j][0],XY[j][1] XY[j][1] y2 N = int(input()) int(input()) N x1,y1 = XY[i][0],XY[i][1] XY[i][0] x1 y1 = XY[i][0],XY[i][1] XY[i][1] y1 mm = 0 0 mm mm = max(mm,li[i]) max(mm,li[i]) mm
N = int(input())
XY = [list(map(int,input().split())) for _ in range(N)]

li = {}
for i in range(N):
    for j in range(N):
        if i==j:
            continue

        x1,y1 = XY[i][0],XY[i][1]
        x2,y2 = XY[j][0],XY[j][1]

        mm1 = x2-x1
        mm2 = y2-y1
        # if mm1<0 and mm2<0:
        #     mm1 *= -1
        #     mm2 *= -1
        PQ = (mm1, mm2)

        if PQ in li:
            li[PQ] += 1
        else:
            li[PQ] = 1

mm = 0
for i in li:
    mm = max(mm,li[i])
print(N-mm)