from collections import defaultdict
n=int(input())
c=[]
for _ in range(n): c.append(list(map(int,input().split())))
dic=defaultdict(int)
for i in range(n):
    for j in range(n):
        if i==j: continue
        dic[(c[i][0]-c[j][0],c[i][1]-c[j][1])]+=1
if dict(dic): print(n-max(dic.values()))
else: print(1) from collections import defaultdict n=int(input()) n int(input()) int input() input c=[] c [] for _ in range(n): c.append(list(map(int,input().split()))) _ range(n) range n dic=defaultdict(int) dic defaultdict(int) defaultdict int for i in range(n):
    for j in range(n):
        if i==j: continue
        dic[(c[i][0]-c[j][0],c[i][1]-c[j][1])]+=1 i range(n) range n for j in range(n):
        if i==j: continue
        dic[(c[i][0]-c[j][0],c[i][1]-c[j][1])]+=1 j range(n) range n if i==j: continue
         i==j i j dic[(c[i][0]-c[j][0],c[i][1]-c[j][1])]+=1 dic[(c[i][0]-c[j][0],c[i][1]-c[j][1])] dic (c[i][0]-c[j][0],c[i][1]-c[j][1]) c[i][0]-c[j][0] c[i][0] [i] c i 0 c[j][0] [j] c j 0 c[i][1]-c[j][1] c[i][1] [i] c i 1 c[j][1] [j] c j 1 1 if dict(dic): print(n-max(dic.values()))
else: print(1) dict(dic) dict dic n=int(input()) int(input()) n c=[] [] c dic=defaultdict(int) defaultdict(int) dic
from collections import defaultdict
n=int(input())
c=[]
for _ in range(n): c.append(list(map(int,input().split())))
dic=defaultdict(int)
for i in range(n):
    for j in range(n):
        if i==j: continue
        dic[(c[i][0]-c[j][0],c[i][1]-c[j][1])]+=1
if dict(dic): print(n-max(dic.values()))
else: print(1)