import sys
input = sys.stdin.readline
sys.setrecursionlimit(10000000)
from collections import defaultdict
mod = 10**9+7

N = int(input())
xy = [list(map(int, input().split())) for i in range(N)]
cnt = defaultdict(int)
for i in range(N):
    for j in range(i+1, N):
        a, b = xy[j][0]-xy[i][0], xy[j][1]-xy[i][1]
        cnt[(a, b)] += 1
        cnt[(-a, -b)] += 1
if N == 1:
    print(1)
else:
    print(N-max(cnt.values())) import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline sys.setrecursionlimit(10000000) sys.setrecursionlimit sys setrecursionlimit 10000000 from collections import defaultdict mod = 10**9+7 mod 10**9+7 10**9 10 9 7 N = int(input()) N int(input()) int input() input list(map(int, input().split())) for i in range(N) for i in range(N) i range(N) range N for i in range(N) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split xy = [list(map(int, input().split())) for i in range(N)] xy [list(map(int, input().split())) for i in range(N)] cnt = defaultdict(int) cnt defaultdict(int) defaultdict int for i in range(N):
    for j in range(i+1, N):
        a, b = xy[j][0]-xy[i][0], xy[j][1]-xy[i][1]
        cnt[(a, b)] += 1
        cnt[(-a, -b)] += 1 i range(N) range N for j in range(i+1, N):
        a, b = xy[j][0]-xy[i][0], xy[j][1]-xy[i][1]
        cnt[(a, b)] += 1
        cnt[(-a, -b)] += 1 j range(i+1, N) range i+1 i 1 N a, b = xy[j][0]-xy[i][0], xy[j][1]-xy[i][1] a xy[j][0]-xy[i][0] xy[j][0] [j] xy j 0 xy[i][0] [i] xy i 0 b xy[j][1]-xy[i][1] xy[j][1] [j] xy j 1 xy[i][1] [i] xy i 1 cnt[(a, b)] += 1 cnt[(a, b)] cnt (a, b) a b 1 cnt[(-a, -b)] += 1 cnt[(-a, -b)] cnt (-a, -b) -a a -b b 1 if N == 1:
    print(1)
else:
    print(N-max(cnt.values())) N == 1 N 1 print(1) print 1 print(N-max(cnt.values())) print N-max(cnt.values()) N max(cnt.values()) max cnt.values() cnt.values cnt values N = int(input()) int(input()) N xy = [list(map(int, input().split())) for i in range(N)] [list(map(int, input().split())) for i in range(N)] xy b = xy[j][0]-xy[i][0], xy[j][1]-xy[i][1] xy[j][1]-xy[i][1] b input = sys.stdin.readline sys.stdin.readline input a, b = xy[j][0]-xy[i][0], xy[j][1]-xy[i][1] xy[j][0]-xy[i][0] a cnt = defaultdict(int) defaultdict(int) cnt mod = 10**9+7 10**9+7 mod
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10000000)
from collections import defaultdict
mod = 10**9+7

N = int(input())
xy = [list(map(int, input().split())) for i in range(N)]
cnt = defaultdict(int)
for i in range(N):
    for j in range(i+1, N):
        a, b = xy[j][0]-xy[i][0], xy[j][1]-xy[i][1]
        cnt[(a, b)] += 1
        cnt[(-a, -b)] += 1
if N == 1:
    print(1)
else:
    print(N-max(cnt.values()))
