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

if N!=1:
    pqs = []
    for i in range(N):
        for j in range(i+1,N):
            X1 = XY[i][0]
            Y1 = XY[i][1]
            X2 = XY[j][0]
            Y2 = XY[j][1]
            pqs.append(str(X1-X2)+","+str(Y1-Y2))
            pqs.append(str(X2-X1)+","+str(Y2-Y1))

    from collections import Counter
    C = dict(Counter(pqs))
    out = N - max(C.values())
    print(out)
else:
    print(1) N = int(input()) N int(input()) int input() input XY = [] XY [] for i in range(N):
    XY.append(list(map(int,input().split()))) i range(N) range N XY.append(list(map(int,input().split()))) XY.append XY append list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split if N!=1:
    pqs = []
    for i in range(N):
        for j in range(i+1,N):
            X1 = XY[i][0]
            Y1 = XY[i][1]
            X2 = XY[j][0]
            Y2 = XY[j][1]
            pqs.append(str(X1-X2)+","+str(Y1-Y2))
            pqs.append(str(X2-X1)+","+str(Y2-Y1))

    from collections import Counter
    C = dict(Counter(pqs))
    out = N - max(C.values())
    print(out)
else:
    print(1) N!=1 N 1 pqs = [] pqs [] for i in range(N):
        for j in range(i+1,N):
            X1 = XY[i][0]
            Y1 = XY[i][1]
            X2 = XY[j][0]
            Y2 = XY[j][1]
            pqs.append(str(X1-X2)+","+str(Y1-Y2))
            pqs.append(str(X2-X1)+","+str(Y2-Y1))

     i range(N) range N for j in range(i+1,N):
            X1 = XY[i][0]
            Y1 = XY[i][1]
            X2 = XY[j][0]
            Y2 = XY[j][1]
            pqs.append(str(X1-X2)+","+str(Y1-Y2))
            pqs.append(str(X2-X1)+","+str(Y2-Y1))

     j range(i+1,N) range i+1 i 1 N X1 = XY[i][0] X1 XY[i][0] [i] XY i 0 Y1 = XY[i][1] Y1 XY[i][1] [i] XY i 1 X2 = XY[j][0] X2 XY[j][0] [j] XY j 0 Y2 = XY[j][1] Y2 XY[j][1] [j] XY j 1 pqs.append(str(X1-X2)+","+str(Y1-Y2)) pqs.append pqs append str(X1-X2)+","+str(Y1-Y2) str(X1-X2)+"," str(X1-X2) str X1-X2 X1 X2 "," str(Y1-Y2) str Y1-Y2 Y1 Y2 pqs.append(str(X2-X1)+","+str(Y2-Y1)) pqs.append pqs append str(X2-X1)+","+str(Y2-Y1) str(X2-X1)+"," str(X2-X1) str X2-X1 X2 X1 "," str(Y2-Y1) str Y2-Y1 Y2 Y1 from collections import Counter C = dict(Counter(pqs)) C dict(Counter(pqs)) dict Counter(pqs) Counter pqs out = N - max(C.values()) out N - max(C.values()) N max(C.values()) max C.values() C.values C values print(out) print out print(1) print 1 XY = [] [] XY pqs = [] [] pqs Y1 = XY[i][1] XY[i][1] Y1 C = dict(Counter(pqs)) dict(Counter(pqs)) C out = N - max(C.values()) N - max(C.values()) out X1 = XY[i][0] XY[i][0] X1 Y2 = XY[j][1] XY[j][1] Y2 N = int(input()) int(input()) N X2 = XY[j][0] XY[j][0] X2
N = int(input())
XY = []
for i in range(N):
    XY.append(list(map(int,input().split())))

if N!=1:
    pqs = []
    for i in range(N):
        for j in range(i+1,N):
            X1 = XY[i][0]
            Y1 = XY[i][1]
            X2 = XY[j][0]
            Y2 = XY[j][1]
            pqs.append(str(X1-X2)+","+str(Y1-Y2))
            pqs.append(str(X2-X1)+","+str(Y2-Y1))

    from collections import Counter
    C = dict(Counter(pqs))
    out = N - max(C.values())
    print(out)
else:
    print(1)