import sys
input = sys.stdin.readline
from operator import itemgetter
sys.setrecursionlimit(10000000)
from collections import Counter

def main():
    n = int(input().strip())
    p = []
    for i in range(n):
        x, y = map(int, input().strip().split())
        p.append((x, y))
    vtable = [0] * n**2
    for i in range(n):
        for j in range(n):
            vtable[i * n + j] = (p[i][0] - p[j][0], p[i][1] - p[j][1])
    c = sorted(Counter(vtable).values(), reverse=True)
    if len(c) == 1:
        print(1)
    else:
        print(n - c[1])


if __name__ == '__main__':
    main() import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline from operator import itemgetter sys.setrecursionlimit(10000000) sys.setrecursionlimit sys setrecursionlimit 10000000 from collections import Counter def main():
    n = int(input().strip())
    p = []
    for i in range(n):
        x, y = map(int, input().strip().split())
        p.append((x, y))
    vtable = [0] * n**2
    for i in range(n):
        for j in range(n):
            vtable[i * n + j] = (p[i][0] - p[j][0], p[i][1] - p[j][1])
    c = sorted(Counter(vtable).values(), reverse=True)
    if len(c) == 1:
        print(1)
    else:
        print(n - c[1]) main n = int(input().strip()) n int(input().strip()) int input().strip() ().strip () input strip p = [] p [] for i in range(n):
        x, y = map(int, input().strip().split())
        p.append((x, y))
     i range(n) range n x, y = map(int, input().strip().split()) x map(int, input().strip().split()) map int input().strip().split() ().strip().split ().strip() ().strip () input strip split y p.append((x, y)) p.append p append (x, y) x y vtable = [0] * n**2 vtable [0] * n**2 [0] 0 n**2 n 2 for i in range(n):
        for j in range(n):
            vtable[i * n + j] = (p[i][0] - p[j][0], p[i][1] - p[j][1])
     i range(n) range n for j in range(n):
            vtable[i * n + j] = (p[i][0] - p[j][0], p[i][1] - p[j][1])
     j range(n) range n vtable[i * n + j] = (p[i][0] - p[j][0], p[i][1] - p[j][1]) vtable[i * n + j] vtable i * n + j i * n i n j (p[i][0] - p[j][0], p[i][1] - p[j][1]) p[i][0] - p[j][0] p[i][0] [i] p i 0 p[j][0] [j] p j 0 p[i][1] - p[j][1] p[i][1] [i] p i 1 p[j][1] [j] p j 1 c = sorted(Counter(vtable).values(), reverse=True) c sorted(Counter(vtable).values(), reverse=True) sorted Counter(vtable).values() (vtable).values (vtable) Counter vtable values reverse=True reverse True if len(c) == 1:
        print(1)
    else:
        print(n - c[1]) len(c) == 1 len(c) len c 1 print(1) print 1 print(n - c[1]) print n - c[1] n c[1] c 1 if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    n = int(input().strip())
    p = []
    for i in range(n):
        x, y = map(int, input().strip().split())
        p.append((x, y))
    vtable = [0] * n**2
    for i in range(n):
        for j in range(n):
            vtable[i * n + j] = (p[i][0] - p[j][0], p[i][1] - p[j][1])
    c = sorted(Counter(vtable).values(), reverse=True)
    if len(c) == 1:
        print(1)
    else:
        print(n - c[1]) def main():
    n = int(input().strip())
    p = []
    for i in range(n):
        x, y = map(int, input().strip().split())
        p.append((x, y))
    vtable = [0] * n**2
    for i in range(n):
        for j in range(n):
            vtable[i * n + j] = (p[i][0] - p[j][0], p[i][1] - p[j][1])
    c = sorted(Counter(vtable).values(), reverse=True)
    if len(c) == 1:
        print(1)
    else:
        print(n - c[1]) main input = sys.stdin.readline sys.stdin.readline input
import sys
input = sys.stdin.readline
from operator import itemgetter
sys.setrecursionlimit(10000000)
from collections import Counter

def main():
    n = int(input().strip())
    p = []
    for i in range(n):
        x, y = map(int, input().strip().split())
        p.append((x, y))
    vtable = [0] * n**2
    for i in range(n):
        for j in range(n):
            vtable[i * n + j] = (p[i][0] - p[j][0], p[i][1] - p[j][1])
    c = sorted(Counter(vtable).values(), reverse=True)
    if len(c) == 1:
        print(1)
    else:
        print(n - c[1])


if __name__ == '__main__':
    main()
