#https://atcoder.jp/contests/diverta2019-2/submissions/11229318
n = int(input())
t = [tuple(map(int, input().split())) for _ in range(n)]
s = set(t)
cnt = 0
for i in range(n-1):
  for j in range(i+1,n):
    u,v = t[i]
    x,y = t[j]
    p = u-x; q = v-y
    c = sum((x-p, y-q) in s for x,y in t)
    if cnt < c: cnt = c
print(n-cnt) n = int(input()) n int(input()) int input() input tuple(map(int, input().split())) for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) tuple(map(int, input().split())) tuple map(int, input().split()) map int input().split() ().split () input split t = [tuple(map(int, input().split())) for _ in range(n)] t [tuple(map(int, input().split())) for _ in range(n)] s = set(t) s set(t) set t cnt = 0 cnt 0 for i in range(n-1):
  for j in range(i+1,n):
    u,v = t[i]
    x,y = t[j]
    p = u-x; q = v-y
    c = sum((x-p, y-q) in s for x,y in t)
    if cnt < c: cnt = c i range(n-1) range n-1 n 1 for j in range(i+1,n):
    u,v = t[i]
    x,y = t[j]
    p = u-x; q = v-y
    c = sum((x-p, y-q) in s for x,y in t)
    if cnt < c: cnt = c j range(i+1,n) range i+1 i 1 n u,v = t[i] u t[i] t i v x,y = t[j] x t[j] t j y p = u-x p u-x u x q = v-y q v-y v y c = sum((x-p, y-q) in s for x,y in t) c sum((x-p, y-q) in s for x,y in t) sum (x-p, y-q) in s (x-p, y-q) x-p x p y-q y q s if cnt < c: cnt cnt < c cnt c print(n-cnt) print n-cnt n cnt u,v = t[i] t[i] u x,y = t[j] t[j] x q = v-y v-y q c = sum((x-p, y-q) in s for x,y in t) sum((x-p, y-q) in s for x,y in t) c n = int(input()) int(input()) n cnt = 0 0 cnt y = t[j] t[j] y t = [tuple(map(int, input().split())) for _ in range(n)] [tuple(map(int, input().split())) for _ in range(n)] t v = t[i] t[i] v p = u-x u-x p s = set(t) set(t) s
#https://atcoder.jp/contests/diverta2019-2/submissions/11229318
n = int(input())
t = [tuple(map(int, input().split())) for _ in range(n)]
s = set(t)
cnt = 0
for i in range(n-1):
  for j in range(i+1,n):
    u,v = t[i]
    x,y = t[j]
    p = u-x; q = v-y
    c = sum((x-p, y-q) in s for x,y in t)
    if cnt < c: cnt = c
print(n-cnt)
