import collections

N = int(input())
X = []
for i in range(N):
    X.append(list(map(int, input().split())))

div = []
for i in range(N):
    for j in range(N):
        if(i == j):
            continue
        div.append(tuple((X[i][0]-X[j][0], X[i][1]-X[j][1])))
        
c = collections.Counter(div)
c_s = sorted(c.items(), key=lambda x:x[1], reverse=True)

if(N == 1):
    print(1)
else:
    print(N-c_s[0][1]) import collections collections N = int(input()) N int(input()) int input() input X = [] X [] for i in range(N):
    X.append(list(map(int, input().split()))) i range(N) range N X.append(list(map(int, input().split()))) X.append X append list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split div = [] div [] for i in range(N):
    for j in range(N):
        if(i == j):
            continue
        div.append(tuple((X[i][0]-X[j][0], X[i][1]-X[j][1])))
         i range(N) range N for j in range(N):
        if(i == j):
            continue
        div.append(tuple((X[i][0]-X[j][0], X[i][1]-X[j][1])))
         j range(N) range N if(i == j):
            continue
         i == j i j continue div.append(tuple((X[i][0]-X[j][0], X[i][1]-X[j][1]))) div.append div append tuple((X[i][0]-X[j][0], X[i][1]-X[j][1])) tuple (X[i][0]-X[j][0], X[i][1]-X[j][1]) X[i][0]-X[j][0] X[i][0] [i] X i 0 X[j][0] [j] X j 0 X[i][1]-X[j][1] X[i][1] [i] X i 1 X[j][1] [j] X j 1 c = collections.Counter(div) c collections.Counter(div) collections.Counter collections Counter div c_s = sorted(c.items(), key=lambda x:x[1], reverse=True) c_s sorted(c.items(), key=lambda x:x[1], reverse=True) sorted c.items() c.items c items key=lambda x:x[1] key lambda x:x[1] x[1] x 1 x reverse=True reverse True if(N == 1):
    print(1)
else:
    print(N-c_s[0][1]) N == 1 N 1 print(1) print 1 print(N-c_s[0][1]) print N-c_s[0][1] N c_s[0][1] [0] c_s 0 1 X = [] [] X c_s = sorted(c.items(), key=lambda x:x[1], reverse=True) sorted(c.items(), key=lambda x:x[1], reverse=True) c_s c = collections.Counter(div) collections.Counter(div) c N = int(input()) int(input()) N div = [] [] div
import collections

N = int(input())
X = []
for i in range(N):
    X.append(list(map(int, input().split())))

div = []
for i in range(N):
    for j in range(N):
        if(i == j):
            continue
        div.append(tuple((X[i][0]-X[j][0], X[i][1]-X[j][1])))
        
c = collections.Counter(div)
c_s = sorted(c.items(), key=lambda x:x[1], reverse=True)

if(N == 1):
    print(1)
else:
    print(N-c_s[0][1])