#%%
import collections

n = int(input())
x = [0] * n
y = [0] * n
for i in range(n):
    x[i], y[i] = map(int, input().split())

l = []
for i in range(n):
    for j in range(n):
        tmp = str(x[i]-x[j]) + ' ' + str(y[i]-y[j])
        l.append(tmp)

c = collections.Counter(l)
a = list(c.values())
#print(a)
a.sort(reverse=True)


if n == 1:
    print(1)
else:
    print(n-a[1]) import collections collections n = int(input()) n int(input()) int input() input x = [0] * n x [0] * n [0] 0 n y = [0] * n y [0] * n [0] 0 n for i in range(n):
    x[i], y[i] = map(int, input().split()) i range(n) range n x[i], y[i] = map(int, input().split()) x[i] x i map(int, input().split()) map int input().split() ().split () input split y[i] y i l = [] l [] for i in range(n):
    for j in range(n):
        tmp = str(x[i]-x[j]) + ' ' + str(y[i]-y[j])
        l.append(tmp) i range(n) range n for j in range(n):
        tmp = str(x[i]-x[j]) + ' ' + str(y[i]-y[j])
        l.append(tmp) j range(n) range n tmp = str(x[i]-x[j]) + ' ' + str(y[i]-y[j]) tmp str(x[i]-x[j]) + ' ' + str(y[i]-y[j]) str(x[i]-x[j]) + ' ' str(x[i]-x[j]) str x[i]-x[j] x[i] x i x[j] x j ' ' str(y[i]-y[j]) str y[i]-y[j] y[i] y i y[j] y j l.append(tmp) l.append l append tmp c = collections.Counter(l) c collections.Counter(l) collections.Counter collections Counter l a = list(c.values()) a list(c.values()) list c.values() c.values c values a.sort(reverse=True) a.sort a sort reverse=True reverse True if n == 1:
    print(1)
else:
    print(n-a[1]) n == 1 n 1 print(1) print 1 print(n-a[1]) print n-a[1] n a[1] a 1 y = [0] * n [0] * n y tmp = str(x[i]-x[j]) + ' ' + str(y[i]-y[j]) str(x[i]-x[j]) + ' ' + str(y[i]-y[j]) tmp n = int(input()) int(input()) n l = [] [] l x = [0] * n [0] * n x a = list(c.values()) list(c.values()) a c = collections.Counter(l) collections.Counter(l) c
#%%
import collections

n = int(input())
x = [0] * n
y = [0] * n
for i in range(n):
    x[i], y[i] = map(int, input().split())

l = []
for i in range(n):
    for j in range(n):
        tmp = str(x[i]-x[j]) + ' ' + str(y[i]-y[j])
        l.append(tmp)

c = collections.Counter(l)
a = list(c.values())
#print(a)
a.sort(reverse=True)


if n == 1:
    print(1)
else:
    print(n-a[1])