n=int(input())
lists=[]
if n>=2:
    for i in range(n):
        a,b=map(int,input().split())
        lists.append([a,b])
    diflist=[]
    for i in range(n):
        for j in range(n):
            if i!=j:
                add=(lists[i][0]-lists[j][0],lists[i][1]-lists[j][1])
                diflist.append(add)
            else:
                continue
    import collections
    dic=collections.Counter(diflist)
    value=dic.values()
    a=max(value)
    print(n-a)
else:
    print(1) n=int(input()) n int(input()) int input() input lists=[] lists [] if n>=2:
    for i in range(n):
        a,b=map(int,input().split())
        lists.append([a,b])
    diflist=[]
    for i in range(n):
        for j in range(n):
            if i!=j:
                add=(lists[i][0]-lists[j][0],lists[i][1]-lists[j][1])
                diflist.append(add)
            else:
                continue
    import collections
    dic=collections.Counter(diflist)
    value=dic.values()
    a=max(value)
    print(n-a)
else:
    print(1) n>=2 n 2 for i in range(n):
        a,b=map(int,input().split())
        lists.append([a,b])
     i range(n) range n a,b=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b lists.append([a,b]) lists.append lists append [a,b] a b diflist=[] diflist [] for i in range(n):
        for j in range(n):
            if i!=j:
                add=(lists[i][0]-lists[j][0],lists[i][1]-lists[j][1])
                diflist.append(add)
            else:
                continue
     i range(n) range n for j in range(n):
            if i!=j:
                add=(lists[i][0]-lists[j][0],lists[i][1]-lists[j][1])
                diflist.append(add)
            else:
                continue
     j range(n) range n if i!=j:
                add=(lists[i][0]-lists[j][0],lists[i][1]-lists[j][1])
                diflist.append(add)
            else:
                continue
     i!=j i j add=(lists[i][0]-lists[j][0],lists[i][1]-lists[j][1]) add (lists[i][0]-lists[j][0],lists[i][1]-lists[j][1]) lists[i][0]-lists[j][0] lists[i][0] [i] lists i 0 lists[j][0] [j] lists j 0 lists[i][1]-lists[j][1] lists[i][1] [i] lists i 1 lists[j][1] [j] lists j 1 diflist.append(add) diflist.append diflist append add continue import collections collections dic=collections.Counter(diflist) dic collections.Counter(diflist) collections.Counter collections Counter diflist value=dic.values() value dic.values() dic.values dic values a=max(value) a max(value) max value print(n-a) print n-a n a print(1) print 1 add=(lists[i][0]-lists[j][0],lists[i][1]-lists[j][1]) (lists[i][0]-lists[j][0],lists[i][1]-lists[j][1]) add value=dic.values() dic.values() value n=int(input()) int(input()) n lists=[] [] lists dic=collections.Counter(diflist) collections.Counter(diflist) dic a,b=map(int,input().split()) map(int,input().split()) a b=map(int,input().split()) map(int,input().split()) b diflist=[] [] diflist a=max(value) max(value) a
n=int(input())
lists=[]
if n>=2:
    for i in range(n):
        a,b=map(int,input().split())
        lists.append([a,b])
    diflist=[]
    for i in range(n):
        for j in range(n):
            if i!=j:
                add=(lists[i][0]-lists[j][0],lists[i][1]-lists[j][1])
                diflist.append(add)
            else:
                continue
    import collections
    dic=collections.Counter(diflist)
    value=dic.values()
    a=max(value)
    print(n-a)
else:
    print(1)