from decimal import Decimal

N = int(input())

xy = [list(map(Decimal,input().split())) for i in range(N)]

cnt ={}

for i in range(N):
    xi = xy[i][0]
    yi = xy[i][1]

    for j in range(i+1,N):
        xj = xy[j][0]
        yj = xy[j][1]

        x_dif =xi-xj
        y_dif = yi-yj
        if x_dif<0:
            x_dif = -x_dif
            y_dif = -y_dif
        elif x_dif == 0:
            y_dif = abs(y_dif)

        if (x_dif,y_dif)  in cnt.keys():
            cnt[x_dif,y_dif] += 1
        else:
            cnt[x_dif, y_dif] =1

if N == 1:
    print(1)
else: print(N-max(cnt.values())) from decimal import Decimal N = int(input()) N int(input()) int input() input list(map(Decimal,input().split())) for i in range(N) for i in range(N) i range(N) range N for i in range(N) list(map(Decimal,input().split())) list map(Decimal,input().split()) map Decimal input().split() ().split () input split xy = [list(map(Decimal,input().split())) for i in range(N)] xy [list(map(Decimal,input().split())) for i in range(N)] cnt ={} cnt {} for i in range(N):
    xi = xy[i][0]
    yi = xy[i][1]

    for j in range(i+1,N):
        xj = xy[j][0]
        yj = xy[j][1]

        x_dif =xi-xj
        y_dif = yi-yj
        if x_dif<0:
            x_dif = -x_dif
            y_dif = -y_dif
        elif x_dif == 0:
            y_dif = abs(y_dif)

        if (x_dif,y_dif)  in cnt.keys():
            cnt[x_dif,y_dif] += 1
        else:
            cnt[x_dif, y_dif] =1 i range(N) range N xi = xy[i][0] xi xy[i][0] [i] xy i 0 yi = xy[i][1] yi xy[i][1] [i] xy i 1 for j in range(i+1,N):
        xj = xy[j][0]
        yj = xy[j][1]

        x_dif =xi-xj
        y_dif = yi-yj
        if x_dif<0:
            x_dif = -x_dif
            y_dif = -y_dif
        elif x_dif == 0:
            y_dif = abs(y_dif)

        if (x_dif,y_dif)  in cnt.keys():
            cnt[x_dif,y_dif] += 1
        else:
            cnt[x_dif, y_dif] =1 j range(i+1,N) range i+1 i 1 N xj = xy[j][0] xj xy[j][0] [j] xy j 0 yj = xy[j][1] yj xy[j][1] [j] xy j 1 x_dif =xi-xj x_dif xi-xj xi xj y_dif = yi-yj y_dif yi-yj yi yj if x_dif<0:
            x_dif = -x_dif
            y_dif = -y_dif
        elif x_dif == 0:
            y_dif = abs(y_dif)

         x_dif<0 x_dif 0 x_dif = -x_dif x_dif -x_dif x_dif y_dif = -y_dif y_dif -y_dif y_dif elif x_dif == 0:
            y_dif = abs(y_dif)

         x_dif == 0 x_dif 0 y_dif = abs(y_dif) y_dif abs(y_dif) abs y_dif if (x_dif,y_dif)  in cnt.keys():
            cnt[x_dif,y_dif] += 1
        else:
            cnt[x_dif, y_dif] =1 (x_dif,y_dif)  in cnt.keys() (x_dif,y_dif) x_dif y_dif cnt.keys() cnt.keys cnt keys cnt[x_dif,y_dif] += 1 cnt[x_dif,y_dif] cnt x_dif 1 cnt[x_dif, y_dif] =1 cnt[x_dif, y_dif] cnt x_dif 1 if N == 1:
    print(1)
else: print(N-max(cnt.values())) N == 1 N 1 print(1) print 1 xj = xy[j][0] xy[j][0] xj xi = xy[i][0] xy[i][0] xi y_dif = yi-yj yi-yj y_dif yi = xy[i][1] xy[i][1] yi y_dif = abs(y_dif) abs(y_dif) y_dif cnt ={} {} cnt x_dif =xi-xj xi-xj x_dif x_dif = -x_dif -x_dif x_dif xy = [list(map(Decimal,input().split())) for i in range(N)] [list(map(Decimal,input().split())) for i in range(N)] xy yj = xy[j][1] xy[j][1] yj N = int(input()) int(input()) N y_dif = -y_dif -y_dif y_dif
from decimal import Decimal

N = int(input())

xy = [list(map(Decimal,input().split())) for i in range(N)]

cnt ={}

for i in range(N):
    xi = xy[i][0]
    yi = xy[i][1]

    for j in range(i+1,N):
        xj = xy[j][0]
        yj = xy[j][1]

        x_dif =xi-xj
        y_dif = yi-yj
        if x_dif<0:
            x_dif = -x_dif
            y_dif = -y_dif
        elif x_dif == 0:
            y_dif = abs(y_dif)

        if (x_dif,y_dif)  in cnt.keys():
            cnt[x_dif,y_dif] += 1
        else:
            cnt[x_dif, y_dif] =1

if N == 1:
    print(1)
else: print(N-max(cnt.values()))