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

if N==1:
    print(1)
    exit()

dis = {}

for i in range(N):
    for j in range(N):
        if i == j:
            continue
        X = XY[j][0]-XY[i][0]
        Y = XY[j][1]-XY[i][1]
        if (X,Y) in dis:
            dis[(X,Y)] += 1
        else:
            dis[(X,Y)] = 1
print(N-max(dis.values())) 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)] if N==1:
    print(1)
    exit() N==1 N 1 print(1) print 1 exit() exit dis = {} dis {} for i in range(N):
    for j in range(N):
        if i == j:
            continue
        X = XY[j][0]-XY[i][0]
        Y = XY[j][1]-XY[i][1]
        if (X,Y) in dis:
            dis[(X,Y)] += 1
        else:
            dis[(X,Y)] = 1 i range(N) range N for j in range(N):
        if i == j:
            continue
        X = XY[j][0]-XY[i][0]
        Y = XY[j][1]-XY[i][1]
        if (X,Y) in dis:
            dis[(X,Y)] += 1
        else:
            dis[(X,Y)] = 1 j range(N) range N if i == j:
            continue
         i == j i j continue X = XY[j][0]-XY[i][0] X XY[j][0]-XY[i][0] XY[j][0] [j] XY j 0 XY[i][0] [i] XY i 0 Y = XY[j][1]-XY[i][1] Y XY[j][1]-XY[i][1] XY[j][1] [j] XY j 1 XY[i][1] [i] XY i 1 if (X,Y) in dis:
            dis[(X,Y)] += 1
        else:
            dis[(X,Y)] = 1 (X,Y) in dis (X,Y) X Y dis dis[(X,Y)] += 1 dis[(X,Y)] dis (X,Y) X Y 1 dis[(X,Y)] = 1 dis[(X,Y)] dis (X,Y) X Y 1 print(N-max(dis.values())) print N-max(dis.values()) N max(dis.values()) max dis.values() dis.values dis values XY = [list(map(int,input().split())) for _ in range(N)] [list(map(int,input().split())) for _ in range(N)] XY dis = {} {} dis N = int(input()) int(input()) N X = XY[j][0]-XY[i][0] XY[j][0]-XY[i][0] X Y = XY[j][1]-XY[i][1] XY[j][1]-XY[i][1] Y
N = int(input())
XY = [list(map(int,input().split())) for _ in range(N)]

if N==1:
    print(1)
    exit()

dis = {}

for i in range(N):
    for j in range(N):
        if i == j:
            continue
        X = XY[j][0]-XY[i][0]
        Y = XY[j][1]-XY[i][1]
        if (X,Y) in dis:
            dis[(X,Y)] += 1
        else:
            dis[(X,Y)] = 1
print(N-max(dis.values()))