n=int(input())
dic={}
d=[list(map(int,input().split())) for i in range(n)]
for i in range(n-1):
    for j in range(i+1,n):
        if (d[i][0]-d[j][0],d[i][1]-d[j][1]) in dic:
            dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])]+=1
            dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])]+=1
        else:
            dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])]=1
            dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])]=1
ans=0
for i in dic.values():
    ans=max(ans,i)
print(n-ans) n=int(input()) n int(input()) int input() input dic={} dic {} list(map(int,input().split())) for i in range(n) for i in range(n) i range(n) range n for i in range(n) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split d=[list(map(int,input().split())) for i in range(n)] d [list(map(int,input().split())) for i in range(n)] for i in range(n-1):
    for j in range(i+1,n):
        if (d[i][0]-d[j][0],d[i][1]-d[j][1]) in dic:
            dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])]+=1
            dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])]+=1
        else:
            dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])]=1
            dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])]=1 i range(n-1) range n-1 n 1 for j in range(i+1,n):
        if (d[i][0]-d[j][0],d[i][1]-d[j][1]) in dic:
            dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])]+=1
            dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])]+=1
        else:
            dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])]=1
            dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])]=1 j range(i+1,n) range i+1 i 1 n if (d[i][0]-d[j][0],d[i][1]-d[j][1]) in dic:
            dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])]+=1
            dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])]+=1
        else:
            dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])]=1
            dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])]=1 (d[i][0]-d[j][0],d[i][1]-d[j][1]) in dic (d[i][0]-d[j][0],d[i][1]-d[j][1]) d[i][0]-d[j][0] d[i][0] [i] d i 0 d[j][0] [j] d j 0 d[i][1]-d[j][1] d[i][1] [i] d i 1 d[j][1] [j] d j 1 dic dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])]+=1 dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])] dic (d[i][0]-d[j][0],d[i][1]-d[j][1]) d[i][0]-d[j][0] d[i][0] [i] d i 0 d[j][0] [j] d j 0 d[i][1]-d[j][1] d[i][1] [i] d i 1 d[j][1] [j] d j 1 1 dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])]+=1 dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])] dic (d[j][0]-d[i][0],d[j][1]-d[i][1]) d[j][0]-d[i][0] d[j][0] [j] d j 0 d[i][0] [i] d i 0 d[j][1]-d[i][1] d[j][1] [j] d j 1 d[i][1] [i] d i 1 1 dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])]=1 dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])] dic (d[i][0]-d[j][0],d[i][1]-d[j][1]) d[i][0]-d[j][0] d[i][0] [i] d i 0 d[j][0] [j] d j 0 d[i][1]-d[j][1] d[i][1] [i] d i 1 d[j][1] [j] d j 1 1 dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])]=1 dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])] dic (d[j][0]-d[i][0],d[j][1]-d[i][1]) d[j][0]-d[i][0] d[j][0] [j] d j 0 d[i][0] [i] d i 0 d[j][1]-d[i][1] d[j][1] [j] d j 1 d[i][1] [i] d i 1 1 ans=0 ans 0 for i in dic.values():
    ans=max(ans,i) i dic.values() dic.values dic values ans=max(ans,i) ans max(ans,i) max ans i print(n-ans) print n-ans n ans dic={} {} dic ans=0 0 ans n=int(input()) int(input()) n ans=max(ans,i) max(ans,i) ans d=[list(map(int,input().split())) for i in range(n)] [list(map(int,input().split())) for i in range(n)] d
n=int(input())
dic={}
d=[list(map(int,input().split())) for i in range(n)]
for i in range(n-1):
    for j in range(i+1,n):
        if (d[i][0]-d[j][0],d[i][1]-d[j][1]) in dic:
            dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])]+=1
            dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])]+=1
        else:
            dic[(d[i][0]-d[j][0],d[i][1]-d[j][1])]=1
            dic[(d[j][0]-d[i][0],d[j][1]-d[i][1])]=1
ans=0
for i in dic.values():
    ans=max(ans,i)
print(n-ans)