N = int(input())

pos = []
for _ in range(N):
    tmp = tuple(map(int, input().split()))
    pos.append(tmp)

pos.sort()

dic = dict()
for i in range(N):
    for j in range(i+1,N):
        distance = (pos[j][0]-pos[i][0], pos[j][1]-pos[i][1])
        #print(f'{distance=}')
        if distance in dic:
            dic[distance] += 1
        else:
            dic[distance] = 1
if dic :
    max_frenquency = max(dic.values())

    print(N-max_frenquency)
else:
    print(N) N = int(input()) N int(input()) int input() input pos = [] pos [] for _ in range(N):
    tmp = tuple(map(int, input().split()))
    pos.append(tmp) _ range(N) range N tmp = tuple(map(int, input().split())) tmp tuple(map(int, input().split())) tuple map(int, input().split()) map int input().split() ().split () input split pos.append(tmp) pos.append pos append tmp pos.sort() pos.sort pos sort dic = dict() dic dict() dict for i in range(N):
    for j in range(i+1,N):
        distance = (pos[j][0]-pos[i][0], pos[j][1]-pos[i][1])
        #print(f'{distance=}')
        if distance in dic:
            dic[distance] += 1
        else:
            dic[distance] = 1 i range(N) range N for j in range(i+1,N):
        distance = (pos[j][0]-pos[i][0], pos[j][1]-pos[i][1])
        #print(f'{distance=}')
        if distance in dic:
            dic[distance] += 1
        else:
            dic[distance] = 1 j range(i+1,N) range i+1 i 1 N distance = (pos[j][0]-pos[i][0], pos[j][1]-pos[i][1]) distance (pos[j][0]-pos[i][0], pos[j][1]-pos[i][1]) pos[j][0]-pos[i][0] pos[j][0] [j] pos j 0 pos[i][0] [i] pos i 0 pos[j][1]-pos[i][1] pos[j][1] [j] pos j 1 pos[i][1] [i] pos i 1 if distance in dic:
            dic[distance] += 1
        else:
            dic[distance] = 1 distance in dic distance dic dic[distance] += 1 dic[distance] dic distance 1 dic[distance] = 1 dic[distance] dic distance 1 if dic :
    max_frenquency = max(dic.values())

    print(N-max_frenquency)
else:
    print(N) dic max_frenquency = max(dic.values()) max_frenquency max(dic.values()) max dic.values() dic.values dic values print(N-max_frenquency) print N-max_frenquency N max_frenquency print(N) print N N = int(input()) int(input()) N dic = dict() dict() dic pos = [] [] pos tmp = tuple(map(int, input().split())) tuple(map(int, input().split())) tmp max_frenquency = max(dic.values()) max(dic.values()) max_frenquency distance = (pos[j][0]-pos[i][0], pos[j][1]-pos[i][1]) (pos[j][0]-pos[i][0], pos[j][1]-pos[i][1]) distance
N = int(input())

pos = []
for _ in range(N):
    tmp = tuple(map(int, input().split()))
    pos.append(tmp)

pos.sort()

dic = dict()
for i in range(N):
    for j in range(i+1,N):
        distance = (pos[j][0]-pos[i][0], pos[j][1]-pos[i][1])
        #print(f'{distance=}')
        if distance in dic:
            dic[distance] += 1
        else:
            dic[distance] = 1
if dic :
    max_frenquency = max(dic.values())

    print(N-max_frenquency)
else:
    print(N)