n = int(input())
INF = 114514191981036436433-4
xy = []
for i in range(n):
    x,y = map(int,input().split())
    xy.append((x,y))
    
a = n
for i in range(n):
    for j in range(n):
        if i == j:
            continue
            
        p,q = xy[i][0] - xy[j][0] , xy[i][1] - xy[j][1]
        ans = n
        
        for k in range(n):
            for l in range(n):
                xx,yy = xy[k][0] - xy[l][0] , xy[k][1] - xy[l][1]
                if xx == p and yy == q:
                    ans -= 1
                    
        a = min(a,ans)
        
print(a) n = int(input()) n int(input()) int input() input INF = 114514191981036436433-4 INF 114514191981036436433-4 114514191981036436433 4 xy = [] xy [] for i in range(n):
    x,y = map(int,input().split())
    xy.append((x,y))
     i range(n) range n x,y = map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y xy.append((x,y)) xy.append xy append (x,y) x y a = n a n for i in range(n):
    for j in range(n):
        if i == j:
            continue
            
        p,q = xy[i][0] - xy[j][0] , xy[i][1] - xy[j][1]
        ans = n
        
        for k in range(n):
            for l in range(n):
                xx,yy = xy[k][0] - xy[l][0] , xy[k][1] - xy[l][1]
                if xx == p and yy == q:
                    ans -= 1
                    
        a = min(a,ans)
         i range(n) range n for j in range(n):
        if i == j:
            continue
            
        p,q = xy[i][0] - xy[j][0] , xy[i][1] - xy[j][1]
        ans = n
        
        for k in range(n):
            for l in range(n):
                xx,yy = xy[k][0] - xy[l][0] , xy[k][1] - xy[l][1]
                if xx == p and yy == q:
                    ans -= 1
                    
        a = min(a,ans)
         j range(n) range n if i == j:
            continue
            
         i == j i j continue p,q = xy[i][0] - xy[j][0] , xy[i][1] - xy[j][1] p xy[i][0] - xy[j][0] xy[i][0] [i] xy i 0 xy[j][0] [j] xy j 0 q xy[i][1] - xy[j][1] xy[i][1] [i] xy i 1 xy[j][1] [j] xy j 1 ans = n ans n for k in range(n):
            for l in range(n):
                xx,yy = xy[k][0] - xy[l][0] , xy[k][1] - xy[l][1]
                if xx == p and yy == q:
                    ans -= 1
                    
         k range(n) range n for l in range(n):
                xx,yy = xy[k][0] - xy[l][0] , xy[k][1] - xy[l][1]
                if xx == p and yy == q:
                    ans -= 1
                    
         l range(n) range n xx,yy = xy[k][0] - xy[l][0] , xy[k][1] - xy[l][1] xx xy[k][0] - xy[l][0] xy[k][0] [k] xy k 0 xy[l][0] [l] xy l 0 yy xy[k][1] - xy[l][1] xy[k][1] [k] xy k 1 xy[l][1] [l] xy l 1 if xx == p and yy == q:
                    ans -= 1
                    
         xx == p and yy == q xx == p xx p yy == q yy q ans -= 1 ans 1 a = min(a,ans) a min(a,ans) min a ans print(a) print a x,y = map(int,input().split()) map(int,input().split()) x ans = n n ans a = n n a q = xy[i][0] - xy[j][0] , xy[i][1] - xy[j][1] xy[i][1] - xy[j][1] q p,q = xy[i][0] - xy[j][0] , xy[i][1] - xy[j][1] xy[i][0] - xy[j][0] p a = min(a,ans) min(a,ans) a xy = [] [] xy INF = 114514191981036436433-4 114514191981036436433-4 INF y = map(int,input().split()) map(int,input().split()) y n = int(input()) int(input()) n yy = xy[k][0] - xy[l][0] , xy[k][1] - xy[l][1] xy[k][1] - xy[l][1] yy ans -= 1 1 ans xx,yy = xy[k][0] - xy[l][0] , xy[k][1] - xy[l][1] xy[k][0] - xy[l][0] xx
n = int(input())
INF = 114514191981036436433-4
xy = []
for i in range(n):
    x,y = map(int,input().split())
    xy.append((x,y))
    
a = n
for i in range(n):
    for j in range(n):
        if i == j:
            continue
            
        p,q = xy[i][0] - xy[j][0] , xy[i][1] - xy[j][1]
        ans = n
        
        for k in range(n):
            for l in range(n):
                xx,yy = xy[k][0] - xy[l][0] , xy[k][1] - xy[l][1]
                if xx == p and yy == q:
                    ans -= 1
                    
        a = min(a,ans)
        
print(a)