n = int(input())
data = []
for i in range(n):
    data.append(list(map(int, input().split())))
dif = dict()
data.sort()
for i in range(n):
    for j in range(i+1, n):
        x = data[i][0] - data[j][0]
        y = data[i][1] - data[j][1]
        if (x,y) in dif:
            dif[(x,y)] += 1
        else:
            dif[(x,y)] = 1
if len(dif.keys()) == 0:
    print(n)
    exit()
print(n - max([dif[i] for i in dif.keys()]))
        
        
 n = int(input()) n int(input()) int input() input data = [] data [] for i in range(n):
    data.append(list(map(int, input().split()))) i range(n) range n data.append(list(map(int, input().split()))) data.append data append list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split dif = dict() dif dict() dict data.sort() data.sort data sort for i in range(n):
    for j in range(i+1, n):
        x = data[i][0] - data[j][0]
        y = data[i][1] - data[j][1]
        if (x,y) in dif:
            dif[(x,y)] += 1
        else:
            dif[(x,y)] = 1 i range(n) range n for j in range(i+1, n):
        x = data[i][0] - data[j][0]
        y = data[i][1] - data[j][1]
        if (x,y) in dif:
            dif[(x,y)] += 1
        else:
            dif[(x,y)] = 1 j range(i+1, n) range i+1 i 1 n x = data[i][0] - data[j][0] x data[i][0] - data[j][0] data[i][0] [i] data i 0 data[j][0] [j] data j 0 y = data[i][1] - data[j][1] y data[i][1] - data[j][1] data[i][1] [i] data i 1 data[j][1] [j] data j 1 if (x,y) in dif:
            dif[(x,y)] += 1
        else:
            dif[(x,y)] = 1 (x,y) in dif (x,y) x y dif dif[(x,y)] += 1 dif[(x,y)] dif (x,y) x y 1 dif[(x,y)] = 1 dif[(x,y)] dif (x,y) x y 1 if len(dif.keys()) == 0:
    print(n)
    exit() len(dif.keys()) == 0 len(dif.keys()) len dif.keys() dif.keys dif keys 0 print(n) print n exit() exit dif[i] for i in dif.keys() for i in dif.keys() i dif.keys() dif.keys dif keys for i in dif.keys() dif[i] dif i print(n - max([dif[i] for i in dif.keys()])) print n - max([dif[i] for i in dif.keys()]) n max([dif[i] for i in dif.keys()]) max [dif[i] for i in dif.keys()] y = data[i][1] - data[j][1] data[i][1] - data[j][1] y dif = dict() dict() dif data = [] [] data n = int(input()) int(input()) n x = data[i][0] - data[j][0] data[i][0] - data[j][0] x
n = int(input())
data = []
for i in range(n):
    data.append(list(map(int, input().split())))
dif = dict()
data.sort()
for i in range(n):
    for j in range(i+1, n):
        x = data[i][0] - data[j][0]
        y = data[i][1] - data[j][1]
        if (x,y) in dif:
            dif[(x,y)] += 1
        else:
            dif[(x,y)] = 1
if len(dif.keys()) == 0:
    print(n)
    exit()
print(n - max([dif[i] for i in dif.keys()]))
        
        

