n = int(input())
lis = [list(map(int,input().split())) for i in range(n)]
lis.sort(key = lambda x:x[1])
lis.sort(key = lambda x:x[0])
ans = 10 ** 8
for i in range(n):
    for j in range(i,n):
        p = lis[j][0]-lis[i][0]
        q = lis[j][1]-lis[i][1]
        li = lis.copy()
        cnt = 0
        while li:
            a = li.pop(0)
            while [a[0]+p,a[1]+q] in li:
                a = li.pop(li.index([a[0]+p,a[1]+q]))
            cnt += 1
        ans = min(ans,cnt)
print(ans) 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 lis = [list(map(int,input().split())) for i in range(n)] lis [list(map(int,input().split())) for i in range(n)] lis.sort(key = lambda x:x[1]) lis.sort lis sort key = lambda x:x[1] key lambda x:x[1] x[1] x 1 x lis.sort(key = lambda x:x[0]) lis.sort lis sort key = lambda x:x[0] key lambda x:x[0] x[0] x 0 x ans = 10 ** 8 ans 10 ** 8 10 8 for i in range(n):
    for j in range(i,n):
        p = lis[j][0]-lis[i][0]
        q = lis[j][1]-lis[i][1]
        li = lis.copy()
        cnt = 0
        while li:
            a = li.pop(0)
            while [a[0]+p,a[1]+q] in li:
                a = li.pop(li.index([a[0]+p,a[1]+q]))
            cnt += 1
        ans = min(ans,cnt) i range(n) range n for j in range(i,n):
        p = lis[j][0]-lis[i][0]
        q = lis[j][1]-lis[i][1]
        li = lis.copy()
        cnt = 0
        while li:
            a = li.pop(0)
            while [a[0]+p,a[1]+q] in li:
                a = li.pop(li.index([a[0]+p,a[1]+q]))
            cnt += 1
        ans = min(ans,cnt) j range(i,n) range i n p = lis[j][0]-lis[i][0] p lis[j][0]-lis[i][0] lis[j][0] [j] lis j 0 lis[i][0] [i] lis i 0 q = lis[j][1]-lis[i][1] q lis[j][1]-lis[i][1] lis[j][1] [j] lis j 1 lis[i][1] [i] lis i 1 li = lis.copy() li lis.copy() lis.copy lis copy cnt = 0 cnt 0 while li:
            a = li.pop(0)
            while [a[0]+p,a[1]+q] in li:
                a = li.pop(li.index([a[0]+p,a[1]+q]))
            cnt += 1
         li a = li.pop(0) a li.pop(0) li.pop li pop 0 while [a[0]+p,a[1]+q] in li:
                a = li.pop(li.index([a[0]+p,a[1]+q]))
             [a[0]+p,a[1]+q] in li [a[0]+p,a[1]+q] a[0]+p a[0] a 0 p a[1]+q a[1] a 1 q li a = li.pop(li.index([a[0]+p,a[1]+q])) a li.pop(li.index([a[0]+p,a[1]+q])) li.pop li pop li.index([a[0]+p,a[1]+q]) li.index li index [a[0]+p,a[1]+q] a[0]+p a[0] a 0 p a[1]+q a[1] a 1 q cnt += 1 cnt 1 ans = min(ans,cnt) ans min(ans,cnt) min ans cnt print(ans) print ans li = lis.copy() lis.copy() li lis = [list(map(int,input().split())) for i in range(n)] [list(map(int,input().split())) for i in range(n)] lis p = lis[j][0]-lis[i][0] lis[j][0]-lis[i][0] p n = int(input()) int(input()) n a = li.pop(0) li.pop(0) a ans = 10 ** 8 10 ** 8 ans q = lis[j][1]-lis[i][1] lis[j][1]-lis[i][1] q cnt += 1 1 cnt ans = min(ans,cnt) min(ans,cnt) ans cnt = 0 0 cnt a = li.pop(li.index([a[0]+p,a[1]+q])) li.pop(li.index([a[0]+p,a[1]+q])) a
n = int(input())
lis = [list(map(int,input().split())) for i in range(n)]
lis.sort(key = lambda x:x[1])
lis.sort(key = lambda x:x[0])
ans = 10 ** 8
for i in range(n):
    for j in range(i,n):
        p = lis[j][0]-lis[i][0]
        q = lis[j][1]-lis[i][1]
        li = lis.copy()
        cnt = 0
        while li:
            a = li.pop(0)
            while [a[0]+p,a[1]+q] in li:
                a = li.pop(li.index([a[0]+p,a[1]+q]))
            cnt += 1
        ans = min(ans,cnt)
print(ans)