n = int(input())
xy = [tuple(map(int, input().split())) for _ in range(n)]
s_xy = set(xy)

count = 0
for i in range(n-1):
    for j in range(i+1, n):
        p, q = xy[j][0] - xy[i][0], xy[j][1] - xy[i][1]
        count = max(count, sum((x-p,y-q) in s_xy for x, y in s_xy))

print(n - count) 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 xy = [tuple(map(int, input().split())) for _ in range(n)] xy [tuple(map(int, input().split())) for _ in range(n)] s_xy = set(xy) s_xy set(xy) set xy count = 0 count 0 for i in range(n-1):
    for j in range(i+1, n):
        p, q = xy[j][0] - xy[i][0], xy[j][1] - xy[i][1]
        count = max(count, sum((x-p,y-q) in s_xy for x, y in s_xy)) i range(n-1) range n-1 n 1 for j in range(i+1, n):
        p, q = xy[j][0] - xy[i][0], xy[j][1] - xy[i][1]
        count = max(count, sum((x-p,y-q) in s_xy for x, y in s_xy)) j range(i+1, n) range i+1 i 1 n p, q = xy[j][0] - xy[i][0], xy[j][1] - xy[i][1] p xy[j][0] - xy[i][0] xy[j][0] [j] xy j 0 xy[i][0] [i] xy i 0 q xy[j][1] - xy[i][1] xy[j][1] [j] xy j 1 xy[i][1] [i] xy i 1 count = max(count, sum((x-p,y-q) in s_xy for x, y in s_xy)) count max(count, sum((x-p,y-q) in s_xy for x, y in s_xy)) max count sum((x-p,y-q) in s_xy for x, y in s_xy) sum (x-p,y-q) in s_xy (x-p,y-q) x-p x p y-q y q s_xy print(n - count) print n - count n count p, q = xy[j][0] - xy[i][0], xy[j][1] - xy[i][1] xy[j][0] - xy[i][0] p q = xy[j][0] - xy[i][0], xy[j][1] - xy[i][1] xy[j][1] - xy[i][1] q xy = [tuple(map(int, input().split())) for _ in range(n)] [tuple(map(int, input().split())) for _ in range(n)] xy s_xy = set(xy) set(xy) s_xy n = int(input()) int(input()) n count = 0 0 count count = max(count, sum((x-p,y-q) in s_xy for x, y in s_xy)) max(count, sum((x-p,y-q) in s_xy for x, y in s_xy)) count
n = int(input())
xy = [tuple(map(int, input().split())) for _ in range(n)]
s_xy = set(xy)

count = 0
for i in range(n-1):
    for j in range(i+1, n):
        p, q = xy[j][0] - xy[i][0], xy[j][1] - xy[i][1]
        count = max(count, sum((x-p,y-q) in s_xy for x, y in s_xy))

print(n - count)
