n = int(input())
l = []
for i in range(n):
    tmp = list(map(int,input().split()))
    l.append(tmp)

if len(l) == 1:
    print(1)
    exit()


from collections import defaultdict
d = defaultdict(int)

for i in range(len(l)):
    for j in range(len(l)):
        difx = l[i][0] - l[j][0]
        dify = l[i][1] - l[j][1]
        if difx!=0 or dify!=0:
            dif = str(difx) + "_" + str(dify)
            d[dif] += 1

p_q = max((v,k) for (k,v) in d.items())[1]
p,q = p_q.split("_")

ans=0
for i in range(len(l)):
    found=False
    for j in range(len(l)):
        difx = l[i][0] - l[j][0]
        dify = l[i][1] - l[j][1]
        if difx==int(p) and dify==int(q):
            found=True
            break
    if not found:
        ans+=1
print(ans) n = int(input()) n int(input()) int input() input l = [] l [] for i in range(n):
    tmp = list(map(int,input().split()))
    l.append(tmp) i range(n) range n tmp = list(map(int,input().split())) tmp list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split l.append(tmp) l.append l append tmp if len(l) == 1:
    print(1)
    exit() len(l) == 1 len(l) len l 1 print(1) print 1 exit() exit from collections import defaultdict d = defaultdict(int) d defaultdict(int) defaultdict int for i in range(len(l)):
    for j in range(len(l)):
        difx = l[i][0] - l[j][0]
        dify = l[i][1] - l[j][1]
        if difx!=0 or dify!=0:
            dif = str(difx) + "_" + str(dify)
            d[dif] += 1 i range(len(l)) range len(l) len l for j in range(len(l)):
        difx = l[i][0] - l[j][0]
        dify = l[i][1] - l[j][1]
        if difx!=0 or dify!=0:
            dif = str(difx) + "_" + str(dify)
            d[dif] += 1 j range(len(l)) range len(l) len l difx = l[i][0] - l[j][0] difx l[i][0] - l[j][0] l[i][0] [i] l i 0 l[j][0] [j] l j 0 dify = l[i][1] - l[j][1] dify l[i][1] - l[j][1] l[i][1] [i] l i 1 l[j][1] [j] l j 1 if difx!=0 or dify!=0:
            dif = str(difx) + "_" + str(dify)
            d[dif] += 1 difx!=0 or dify!=0 difx!=0 difx 0 dify!=0 dify 0 dif = str(difx) + "_" + str(dify) dif str(difx) + "_" + str(dify) str(difx) + "_" str(difx) str difx "_" str(dify) str dify d[dif] += 1 d[dif] d dif 1 p_q = max((v,k) for (k,v) in d.items())[1] p_q max((v,k) for (k,v) in d.items())[1] ((v,k) for (k,v) in d.items()) max (v,k) v k 1 p,q = p_q.split("_") p p_q.split("_") p_q.split p_q split "_" q ans=0 ans 0 for i in range(len(l)):
    found=False
    for j in range(len(l)):
        difx = l[i][0] - l[j][0]
        dify = l[i][1] - l[j][1]
        if difx==int(p) and dify==int(q):
            found=True
            break
    if not found:
        ans+=1 i range(len(l)) range len(l) len l found=False found False for j in range(len(l)):
        difx = l[i][0] - l[j][0]
        dify = l[i][1] - l[j][1]
        if difx==int(p) and dify==int(q):
            found=True
            break
     j range(len(l)) range len(l) len l difx = l[i][0] - l[j][0] difx l[i][0] - l[j][0] l[i][0] [i] l i 0 l[j][0] [j] l j 0 dify = l[i][1] - l[j][1] dify l[i][1] - l[j][1] l[i][1] [i] l i 1 l[j][1] [j] l j 1 if difx==int(p) and dify==int(q):
            found=True
            break
     difx==int(p) and dify==int(q) difx==int(p) difx int(p) int p dify==int(q) dify int(q) int q found=True found True break if not found:
        ans+=1 not found found ans+=1 ans 1 print(ans) print ans p_q = max((v,k) for (k,v) in d.items())[1] max((v,k) for (k,v) in d.items())[1] p_q n = int(input()) int(input()) n difx = l[i][0] - l[j][0] l[i][0] - l[j][0] difx found=False False found found=True True found dify = l[i][1] - l[j][1] l[i][1] - l[j][1] dify ans=0 0 ans dify = l[i][1] - l[j][1] l[i][1] - l[j][1] dify p,q = p_q.split("_") p_q.split("_") p tmp = list(map(int,input().split())) list(map(int,input().split())) tmp dif = str(difx) + "_" + str(dify) str(difx) + "_" + str(dify) dif q = p_q.split("_") p_q.split("_") q ans+=1 1 ans d = defaultdict(int) defaultdict(int) d l = [] [] l difx = l[i][0] - l[j][0] l[i][0] - l[j][0] difx
n = int(input())
l = []
for i in range(n):
    tmp = list(map(int,input().split()))
    l.append(tmp)

if len(l) == 1:
    print(1)
    exit()


from collections import defaultdict
d = defaultdict(int)

for i in range(len(l)):
    for j in range(len(l)):
        difx = l[i][0] - l[j][0]
        dify = l[i][1] - l[j][1]
        if difx!=0 or dify!=0:
            dif = str(difx) + "_" + str(dify)
            d[dif] += 1

p_q = max((v,k) for (k,v) in d.items())[1]
p,q = p_q.split("_")

ans=0
for i in range(len(l)):
    found=False
    for j in range(len(l)):
        difx = l[i][0] - l[j][0]
        dify = l[i][1] - l[j][1]
        if difx==int(p) and dify==int(q):
            found=True
            break
    if not found:
        ans+=1
print(ans)