from collections import defaultdict
n = int(input())
li = []
for i in range(n):
    xi,yi = map(int,input().split())
    li.append((xi,yi))
if n == 1:
    print(1)
    exit()
dic = defaultdict(int)
for i in range(n):
    for j in range(n):
        if i != j:
            xi = li[i][0]
            yi = li[i][1]
            xj = li[j][0]
            yj = li[j][1]
            dic[(xi-xj,yi-yj)] += 1
print(n-max(dic.values())) from collections import defaultdict n = int(input()) n int(input()) int input() input li = [] li [] for i in range(n):
    xi,yi = map(int,input().split())
    li.append((xi,yi)) i range(n) range n xi,yi = map(int,input().split()) xi map(int,input().split()) map int input().split() ().split () input split yi li.append((xi,yi)) li.append li append (xi,yi) xi yi if n == 1:
    print(1)
    exit() n == 1 n 1 print(1) print 1 exit() exit dic = defaultdict(int) dic defaultdict(int) defaultdict int for i in range(n):
    for j in range(n):
        if i != j:
            xi = li[i][0]
            yi = li[i][1]
            xj = li[j][0]
            yj = li[j][1]
            dic[(xi-xj,yi-yj)] += 1 i range(n) range n for j in range(n):
        if i != j:
            xi = li[i][0]
            yi = li[i][1]
            xj = li[j][0]
            yj = li[j][1]
            dic[(xi-xj,yi-yj)] += 1 j range(n) range n if i != j:
            xi = li[i][0]
            yi = li[i][1]
            xj = li[j][0]
            yj = li[j][1]
            dic[(xi-xj,yi-yj)] += 1 i != j i j xi = li[i][0] xi li[i][0] [i] li i 0 yi = li[i][1] yi li[i][1] [i] li i 1 xj = li[j][0] xj li[j][0] [j] li j 0 yj = li[j][1] yj li[j][1] [j] li j 1 dic[(xi-xj,yi-yj)] += 1 dic[(xi-xj,yi-yj)] dic (xi-xj,yi-yj) xi-xj xi xj yi-yj yi yj 1 print(n-max(dic.values())) print n-max(dic.values()) n max(dic.values()) max dic.values() dic.values dic values xi = li[i][0] li[i][0] xi yi = map(int,input().split()) map(int,input().split()) yi xi,yi = map(int,input().split()) map(int,input().split()) xi xj = li[j][0] li[j][0] xj li = [] [] li dic = defaultdict(int) defaultdict(int) dic yj = li[j][1] li[j][1] yj n = int(input()) int(input()) n yi = li[i][1] li[i][1] yi
from collections import defaultdict
n = int(input())
li = []
for i in range(n):
    xi,yi = map(int,input().split())
    li.append((xi,yi))
if n == 1:
    print(1)
    exit()
dic = defaultdict(int)
for i in range(n):
    for j in range(n):
        if i != j:
            xi = li[i][0]
            yi = li[i][1]
            xj = li[j][0]
            yj = li[j][1]
            dic[(xi-xj,yi-yj)] += 1
print(n-max(dic.values()))