import sys
from collections import Counter
n = int(input())
ls = []
if n == 1:
    print(1)
else:
    for i in range(n):
        x, y = [int(i) for i in sys.stdin.readline().split()]
        ls.append((x, y))
    res = []
    for i in range(n - 1):
        for j in range(i+1, n):
            res.append((ls[j][0] - ls[i][0], ls[j][1] - ls[i][1]))
            res.append((- ls[j][0] + ls[i][0], - ls[j][1] + ls[i][1]))
    ct = Counter(res)
    print(n - max(ct.values())) import sys sys from collections import Counter n = int(input()) n int(input()) int input() input ls = [] ls [] if n == 1:
    print(1)
else:
    for i in range(n):
        x, y = [int(i) for i in sys.stdin.readline().split()]
        ls.append((x, y))
    res = []
    for i in range(n - 1):
        for j in range(i+1, n):
            res.append((ls[j][0] - ls[i][0], ls[j][1] - ls[i][1]))
            res.append((- ls[j][0] + ls[i][0], - ls[j][1] + ls[i][1]))
    ct = Counter(res)
    print(n - max(ct.values())) n == 1 n 1 print(1) print 1 for i in range(n):
        x, y = [int(i) for i in sys.stdin.readline().split()]
        ls.append((x, y))
     i range(n) range n int(i) for i in sys.stdin.readline().split() for i in sys.stdin.readline().split() i sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split for i in sys.stdin.readline().split() int(i) int i x, y = [int(i) for i in sys.stdin.readline().split()] x [int(i) for i in sys.stdin.readline().split()] y ls.append((x, y)) ls.append ls append (x, y) x y res = [] res [] for i in range(n - 1):
        for j in range(i+1, n):
            res.append((ls[j][0] - ls[i][0], ls[j][1] - ls[i][1]))
            res.append((- ls[j][0] + ls[i][0], - ls[j][1] + ls[i][1]))
     i range(n - 1) range n - 1 n 1 for j in range(i+1, n):
            res.append((ls[j][0] - ls[i][0], ls[j][1] - ls[i][1]))
            res.append((- ls[j][0] + ls[i][0], - ls[j][1] + ls[i][1]))
     j range(i+1, n) range i+1 i 1 n res.append((ls[j][0] - ls[i][0], ls[j][1] - ls[i][1])) res.append res append (ls[j][0] - ls[i][0], ls[j][1] - ls[i][1]) ls[j][0] - ls[i][0] ls[j][0] [j] ls j 0 ls[i][0] [i] ls i 0 ls[j][1] - ls[i][1] ls[j][1] [j] ls j 1 ls[i][1] [i] ls i 1 res.append((- ls[j][0] + ls[i][0], - ls[j][1] + ls[i][1])) res.append res append (- ls[j][0] + ls[i][0], - ls[j][1] + ls[i][1]) - ls[j][0] + ls[i][0] - ls[j][0] ls[j][0] [j] ls j 0 ls[i][0] [i] ls i 0 - ls[j][1] + ls[i][1] - ls[j][1] ls[j][1] [j] ls j 1 ls[i][1] [i] ls i 1 ct = Counter(res) ct Counter(res) Counter res print(n - max(ct.values())) print n - max(ct.values()) n max(ct.values()) max ct.values() ct.values ct values ls = [] [] ls res = [] [] res n = int(input()) int(input()) n y = [int(i) for i in sys.stdin.readline().split()] [int(i) for i in sys.stdin.readline().split()] y ct = Counter(res) Counter(res) ct x, y = [int(i) for i in sys.stdin.readline().split()] [int(i) for i in sys.stdin.readline().split()] x
import sys
from collections import Counter
n = int(input())
ls = []
if n == 1:
    print(1)
else:
    for i in range(n):
        x, y = [int(i) for i in sys.stdin.readline().split()]
        ls.append((x, y))
    res = []
    for i in range(n - 1):
        for j in range(i+1, n):
            res.append((ls[j][0] - ls[i][0], ls[j][1] - ls[i][1]))
            res.append((- ls[j][0] + ls[i][0], - ls[j][1] + ls[i][1]))
    ct = Counter(res)
    print(n - max(ct.values()))