n=int(input())
l=[]
for i in range(n):
    x,y=map(int,input().split())
    l.append([x,y])
l=sorted(l)
s=set()
for j in range(n-1):
    for k in range(j,n):
        s.add((l[k][0]-l[j][0],l[k][1]-l[j][1]))
s_l=sorted(list(s))
cnt=[0]*len(s_l)
dic={}
for i in range(len(s_l)):
    dic[s_l[i]]=i
for j in range(n-1):
    for k in range(j+1,n):
        cnt[dic[(l[k][0]-l[j][0],l[k][1]-l[j][1])]]+=1
if n==1:
    print(1)
    exit()
print(n-max(cnt)) n=int(input()) n int(input()) int input() input l=[] l [] for i in range(n):
    x,y=map(int,input().split())
    l.append([x,y]) i range(n) range n x,y=map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y l.append([x,y]) l.append l append [x,y] x y l=sorted(l) l sorted(l) sorted l s=set() s set() set for j in range(n-1):
    for k in range(j,n):
        s.add((l[k][0]-l[j][0],l[k][1]-l[j][1])) j range(n-1) range n-1 n 1 for k in range(j,n):
        s.add((l[k][0]-l[j][0],l[k][1]-l[j][1])) k range(j,n) range j n s.add((l[k][0]-l[j][0],l[k][1]-l[j][1])) s.add s add (l[k][0]-l[j][0],l[k][1]-l[j][1]) l[k][0]-l[j][0] l[k][0] [k] l k 0 l[j][0] [j] l j 0 l[k][1]-l[j][1] l[k][1] [k] l k 1 l[j][1] [j] l j 1 s_l=sorted(list(s)) s_l sorted(list(s)) sorted list(s) list s cnt=[0]*len(s_l) cnt [0]*len(s_l) [0] 0 len(s_l) len s_l dic={} dic {} for i in range(len(s_l)):
    dic[s_l[i]]=i i range(len(s_l)) range len(s_l) len s_l dic[s_l[i]]=i dic[s_l[i]] dic s_l[i] s_l i i for j in range(n-1):
    for k in range(j+1,n):
        cnt[dic[(l[k][0]-l[j][0],l[k][1]-l[j][1])]]+=1 j range(n-1) range n-1 n 1 for k in range(j+1,n):
        cnt[dic[(l[k][0]-l[j][0],l[k][1]-l[j][1])]]+=1 k range(j+1,n) range j+1 j 1 n cnt[dic[(l[k][0]-l[j][0],l[k][1]-l[j][1])]]+=1 cnt[dic[(l[k][0]-l[j][0],l[k][1]-l[j][1])]] cnt dic[(l[k][0]-l[j][0],l[k][1]-l[j][1])] dic (l[k][0]-l[j][0],l[k][1]-l[j][1]) l[k][0]-l[j][0] l[k][0] [k] l k 0 l[j][0] [j] l j 0 l[k][1]-l[j][1] l[k][1] [k] l k 1 l[j][1] [j] l j 1 1 if n==1:
    print(1)
    exit() n==1 n 1 print(1) print 1 exit() exit print(n-max(cnt)) print n-max(cnt) n max(cnt) max cnt l=[] [] l s=set() set() s y=map(int,input().split()) map(int,input().split()) y cnt=[0]*len(s_l) [0]*len(s_l) cnt n=int(input()) int(input()) n x,y=map(int,input().split()) map(int,input().split()) x dic={} {} dic l=sorted(l) sorted(l) l s_l=sorted(list(s)) sorted(list(s)) s_l
n=int(input())
l=[]
for i in range(n):
    x,y=map(int,input().split())
    l.append([x,y])
l=sorted(l)
s=set()
for j in range(n-1):
    for k in range(j,n):
        s.add((l[k][0]-l[j][0],l[k][1]-l[j][1]))
s_l=sorted(list(s))
cnt=[0]*len(s_l)
dic={}
for i in range(len(s_l)):
    dic[s_l[i]]=i
for j in range(n-1):
    for k in range(j+1,n):
        cnt[dic[(l[k][0]-l[j][0],l[k][1]-l[j][1])]]+=1
if n==1:
    print(1)
    exit()
print(n-max(cnt))
