N = int(input())
lis = []
for i in range(N):
    lis.append(tuple(map(int, input().split())))
if N == 1:
    print(1)
    exit()

dic = {}
for i in range(N):
    for j in range(N):
        if i == j:
            continue
        val = (lis[i][0]-lis[j][0], lis[i][1]-lis[j][1])
        if val in dic:
            dic[val] += 1
        else:
            dic[val] = 1
#print(dic)
print(N-max(dic.values())) N = int(input()) N int(input()) int input() input lis = [] lis [] for i in range(N):
    lis.append(tuple(map(int, input().split()))) i range(N) range N lis.append(tuple(map(int, input().split()))) lis.append lis append tuple(map(int, input().split())) tuple map(int, input().split()) map int input().split() ().split () input split if N == 1:
    print(1)
    exit() N == 1 N 1 print(1) print 1 exit() exit dic = {} dic {} for i in range(N):
    for j in range(N):
        if i == j:
            continue
        val = (lis[i][0]-lis[j][0], lis[i][1]-lis[j][1])
        if val in dic:
            dic[val] += 1
        else:
            dic[val] = 1
#print(dic) i range(N) range N for j in range(N):
        if i == j:
            continue
        val = (lis[i][0]-lis[j][0], lis[i][1]-lis[j][1])
        if val in dic:
            dic[val] += 1
        else:
            dic[val] = 1
#print(dic) j range(N) range N if i == j:
            continue
         i == j i j continue val = (lis[i][0]-lis[j][0], lis[i][1]-lis[j][1]) val (lis[i][0]-lis[j][0], lis[i][1]-lis[j][1]) lis[i][0]-lis[j][0] lis[i][0] [i] lis i 0 lis[j][0] [j] lis j 0 lis[i][1]-lis[j][1] lis[i][1] [i] lis i 1 lis[j][1] [j] lis j 1 if val in dic:
            dic[val] += 1
        else:
            dic[val] = 1
#print(dic) val in dic val dic dic[val] += 1 dic[val] dic val 1 dic[val] = 1 dic[val] dic val 1 print(N-max(dic.values())) print N-max(dic.values()) N max(dic.values()) max dic.values() dic.values dic values dic = {} {} dic lis = [] [] lis val = (lis[i][0]-lis[j][0], lis[i][1]-lis[j][1]) (lis[i][0]-lis[j][0], lis[i][1]-lis[j][1]) val N = int(input()) int(input()) N
N = int(input())
lis = []
for i in range(N):
    lis.append(tuple(map(int, input().split())))
if N == 1:
    print(1)
    exit()

dic = {}
for i in range(N):
    for j in range(N):
        if i == j:
            continue
        val = (lis[i][0]-lis[j][0], lis[i][1]-lis[j][1])
        if val in dic:
            dic[val] += 1
        else:
            dic[val] = 1
#print(dic)
print(N-max(dic.values()))
