from collections import Counter
n=int(input())
b=[tuple(map(int,input().split())) for _ in range(n)]
r=[(x[0]-y[0],x[1]-y[1]) for x in b for y in b if x!=y]
c=Counter(r).most_common(1)
print(n-c[0][1] if c else n) 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 b=[tuple(map(int,input().split())) for _ in range(n)] b [tuple(map(int,input().split())) for _ in range(n)] (x[0]-y[0],x[1]-y[1]) for x in b for y in b if x!=y for x in b for y in b if x!=y x b for y in b if x!=y y b x!=y x y if x!=y (x[0]-y[0],x[1]-y[1]) x[0]-y[0] x[0] x 0 y[0] y 0 x[1]-y[1] x[1] x 1 y[1] y 1 r=[(x[0]-y[0],x[1]-y[1]) for x in b for y in b if x!=y] r [(x[0]-y[0],x[1]-y[1]) for x in b for y in b if x!=y] c=Counter(r).most_common(1) c Counter(r).most_common(1) (r).most_common (r) Counter r most_common 1 print(n-c[0][1] if c else n) print n-c[0][1] if c else n c n-c[0][1] n c[0][1] [0] c 0 1 n c=Counter(r).most_common(1) Counter(r).most_common(1) c n=int(input()) int(input()) n r=[(x[0]-y[0],x[1]-y[1]) for x in b for y in b if x!=y] [(x[0]-y[0],x[1]-y[1]) for x in b for y in b if x!=y] r b=[tuple(map(int,input().split())) for _ in range(n)] [tuple(map(int,input().split())) for _ in range(n)] b
from collections import Counter
n=int(input())
b=[tuple(map(int,input().split())) for _ in range(n)]
r=[(x[0]-y[0],x[1]-y[1]) for x in b for y in b if x!=y]
c=Counter(r).most_common(1)
print(n-c[0][1] if c else n)