from collections import Counter
n = int(input())
xy = [tuple(map(int, input().split())) for _ in range(n)]
v = []
for i in range(n):
    for j in range(n):
        if i == j: continue
        x, y = xy[j]
        px, py = xy[i]
        v.append((x-px, y-py))
num = Counter(v).most_common(1)[0][1] if v else 0
print(n - num) from collections import Counter 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)] v = [] v [] for i in range(n):
    for j in range(n):
        if i == j: continue
        x, y = xy[j]
        px, py = xy[i]
        v.append((x-px, y-py)) i range(n) range n for j in range(n):
        if i == j: continue
        x, y = xy[j]
        px, py = xy[i]
        v.append((x-px, y-py)) j range(n) range n if i == j: continue
         i == j i j x, y = xy[j] x xy[j] xy j y px, py = xy[i] px xy[i] xy i py v.append((x-px, y-py)) v.append v append (x-px, y-py) x-px x px y-py y py num = Counter(v).most_common(1)[0][1] if v else 0 num Counter(v).most_common(1)[0][1] if v else 0 v Counter(v).most_common(1)[0][1] [0] (v).most_common(1) (v).most_common (v) Counter v most_common 1 0 1 0 print(n - num) print n - num n num num = Counter(v).most_common(1)[0][1] if v else 0 Counter(v).most_common(1)[0][1] if v else 0 num v = [] [] v x, y = xy[j] xy[j] x py = xy[i] xy[i] py y = xy[j] xy[j] y n = int(input()) int(input()) n px, py = xy[i] xy[i] px xy = [tuple(map(int, input().split())) for _ in range(n)] [tuple(map(int, input().split())) for _ in range(n)] xy
from collections import Counter
n = int(input())
xy = [tuple(map(int, input().split())) for _ in range(n)]
v = []
for i in range(n):
    for j in range(n):
        if i == j: continue
        x, y = xy[j]
        px, py = xy[i]
        v.append((x-px, y-py))
num = Counter(v).most_common(1)[0][1] if v else 0
print(n - num)
