n = int(input())
xy = sorted([tuple(map(int,input().split())) for i in range(n)])
if n==1:
    print(1)
    exit()
dif = []
for i in range(n):
    for j in range(i+1,n):
        dif.append(tuple([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]]))
from collections import Counter
c = Counter(dif)
print(n-max(c.values())) n = int(input()) n int(input()) int input() input tuple(map(int,input().split())) for i in range(n) for i in range(n) i range(n) range n for i in range(n) tuple(map(int,input().split())) tuple map(int,input().split()) map int input().split() ().split () input split xy = sorted([tuple(map(int,input().split())) for i in range(n)]) xy sorted([tuple(map(int,input().split())) for i in range(n)]) sorted [tuple(map(int,input().split())) for i in range(n)] if n==1:
    print(1)
    exit() n==1 n 1 print(1) print 1 exit() exit dif = [] dif [] for i in range(n):
    for j in range(i+1,n):
        dif.append(tuple([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]])) i range(n) range n for j in range(i+1,n):
        dif.append(tuple([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]])) j range(i+1,n) range i+1 i 1 n dif.append(tuple([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]])) dif.append dif append tuple([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]]) tuple [xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]] xy[j][0]-xy[i][0] xy[j][0] [j] xy j 0 xy[i][0] [i] xy i 0 xy[j][1]-xy[i][1] xy[j][1] [j] xy j 1 xy[i][1] [i] xy i 1 from collections import Counter c = Counter(dif) c Counter(dif) Counter dif print(n-max(c.values())) print n-max(c.values()) n max(c.values()) max c.values() c.values c values n = int(input()) int(input()) n c = Counter(dif) Counter(dif) c dif = [] [] dif xy = sorted([tuple(map(int,input().split())) for i in range(n)]) sorted([tuple(map(int,input().split())) for i in range(n)]) xy
n = int(input())
xy = sorted([tuple(map(int,input().split())) for i in range(n)])
if n==1:
    print(1)
    exit()
dif = []
for i in range(n):
    for j in range(i+1,n):
        dif.append(tuple([xy[j][0]-xy[i][0],xy[j][1]-xy[i][1]]))
from collections import Counter
c = Counter(dif)
print(n-max(c.values()))