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

a = {}
for i in range(n):
    for j in range(n):
        if i == j:
            continue
        v = x[j] - x[i], y[j] - y[i]
        if v not in a:
            a[v] = 1
        else:
            a[v] += 1
ans = n
# print("a =", a)
if len(a.values()) > 0:
    ans -= max(a.values())
print(ans) n = int(input()) n int(input()) int input() input 0 for i in range(n) for i in range(n) i range(n) range n for i in range(n) 0 x = [0 for i in range(n)] x [0 for i in range(n)] 0 for i in range(n) for i in range(n) i range(n) range n for i in range(n) 0 y = [0 for i in range(n)] y [0 for i in range(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 a = {} a {} for i in range(n):
    for j in range(n):
        if i == j:
            continue
        v = x[j] - x[i], y[j] - y[i]
        if v not in a:
            a[v] = 1
        else:
            a[v] += 1 i range(n) range n for j in range(n):
        if i == j:
            continue
        v = x[j] - x[i], y[j] - y[i]
        if v not in a:
            a[v] = 1
        else:
            a[v] += 1 j range(n) range n if i == j:
            continue
         i == j i j continue v = x[j] - x[i], y[j] - y[i] v v = x[j] - x[i], y[j] - y[i] x[j] - x[i] x[j] x j x[i] x i y[j] - y[i] y[j] y j y[i] y i if v not in a:
            a[v] = 1
        else:
            a[v] += 1 v not in a v a a[v] = 1 a[v] a v 1 a[v] += 1 a[v] a v 1 ans = n ans n if len(a.values()) > 0:
    ans -= max(a.values()) len(a.values()) > 0 len(a.values()) len a.values() a.values a values 0 ans -= max(a.values()) ans max(a.values()) max a.values() a.values a values print(ans) print ans ans -= max(a.values()) max(a.values()) ans v = x[j] - x[i], y[j] - y[i] v = x[j] - x[i], y[j] - y[i] v x = [0 for i in range(n)] [0 for i in range(n)] x y = [0 for i in range(n)] [0 for i in range(n)] y n = int(input()) int(input()) n a = {} {} a ans = n n ans
n = int(input())
x = [0 for i in range(n)]
y = [0 for i in range(n)]
for i in range(n):
    x[i], y[i] = map(int, input().split())

a = {}
for i in range(n):
    for j in range(n):
        if i == j:
            continue
        v = x[j] - x[i], y[j] - y[i]
        if v not in a:
            a[v] = 1
        else:
            a[v] += 1
ans = n
# print("a =", a)
if len(a.values()) > 0:
    ans -= max(a.values())
print(ans)