n = int(input())
dat = []
for i in range(n):
    a,b = map(int, input().split())
    dat.append([a,b])
dat2 = []
if n == 1:
    print(1)
else:
    for i in range(n):
        x1, y1 = dat[i]
        for j in range(n):
            if i == j:
                continue
            x2, y2 = dat[j]
            dat2.append( (x1-x2, y1-y2) )
    import collections
    c = collections.Counter(dat2)
    #print(c)
    ta, tb = c.most_common(1)[0][0]
    res = 0
    for i in range(n):
        canwarp = False
        x1, y1 = dat[i]
        for j in range(n):
            if i == j:
                continue
            x2, y2 = dat[j]
            if x1-x2 == ta and  y1-y2 == tb:
                canwarp = True
        if canwarp:
            continue
        else:
            res += 1
    print(res) n = int(input()) n int(input()) int input() input dat = [] dat [] for i in range(n):
    a,b = map(int, input().split())
    dat.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 dat.append([a,b]) dat.append dat append [a,b] a b dat2 = [] dat2 [] if n == 1:
    print(1)
else:
    for i in range(n):
        x1, y1 = dat[i]
        for j in range(n):
            if i == j:
                continue
            x2, y2 = dat[j]
            dat2.append( (x1-x2, y1-y2) )
    import collections
    c = collections.Counter(dat2)
    #print(c)
    ta, tb = c.most_common(1)[0][0]
    res = 0
    for i in range(n):
        canwarp = False
        x1, y1 = dat[i]
        for j in range(n):
            if i == j:
                continue
            x2, y2 = dat[j]
            if x1-x2 == ta and  y1-y2 == tb:
                canwarp = True
        if canwarp:
            continue
        else:
            res += 1
    print(res) n == 1 n 1 print(1) print 1 for i in range(n):
        x1, y1 = dat[i]
        for j in range(n):
            if i == j:
                continue
            x2, y2 = dat[j]
            dat2.append( (x1-x2, y1-y2) )
     i range(n) range n x1, y1 = dat[i] x1 dat[i] dat i y1 for j in range(n):
            if i == j:
                continue
            x2, y2 = dat[j]
            dat2.append( (x1-x2, y1-y2) )
     j range(n) range n if i == j:
                continue
             i == j i j continue x2, y2 = dat[j] x2 dat[j] dat j y2 dat2.append( (x1-x2, y1-y2) ) dat2.append dat2 append (x1-x2, y1-y2) x1-x2 x1 x2 y1-y2 y1 y2 import collections collections c = collections.Counter(dat2) c collections.Counter(dat2) collections.Counter collections Counter dat2 ta, tb = c.most_common(1)[0][0] ta c.most_common(1)[0][0] [0] c.most_common(1) c.most_common c most_common 1 0 0 tb res = 0 res 0 for i in range(n):
        canwarp = False
        x1, y1 = dat[i]
        for j in range(n):
            if i == j:
                continue
            x2, y2 = dat[j]
            if x1-x2 == ta and  y1-y2 == tb:
                canwarp = True
        if canwarp:
            continue
        else:
            res += 1
     i range(n) range n canwarp = False canwarp False x1, y1 = dat[i] x1 dat[i] dat i y1 for j in range(n):
            if i == j:
                continue
            x2, y2 = dat[j]
            if x1-x2 == ta and  y1-y2 == tb:
                canwarp = True
         j range(n) range n if i == j:
                continue
             i == j i j continue x2, y2 = dat[j] x2 dat[j] dat j y2 if x1-x2 == ta and  y1-y2 == tb:
                canwarp = True
         x1-x2 == ta and  y1-y2 == tb x1-x2 == ta x1-x2 x1 x2 ta y1-y2 == tb y1-y2 y1 y2 tb canwarp = True canwarp True if canwarp:
            continue
        else:
            res += 1
     canwarp continue res += 1 res 1 print(res) print res ta, tb = c.most_common(1)[0][0] c.most_common(1)[0][0] ta canwarp = True True canwarp b = map(int, input().split()) map(int, input().split()) b dat2 = [] [] dat2 res = 0 0 res x1, y1 = dat[i] dat[i] x1 y1 = dat[i] dat[i] y1 x2, y2 = dat[j] dat[j] x2 canwarp = False False canwarp res += 1 1 res n = int(input()) int(input()) n x2, y2 = dat[j] dat[j] x2 a,b = map(int, input().split()) map(int, input().split()) a y2 = dat[j] dat[j] y2 dat = [] [] dat x1, y1 = dat[i] dat[i] x1 y2 = dat[j] dat[j] y2 c = collections.Counter(dat2) collections.Counter(dat2) c tb = c.most_common(1)[0][0] c.most_common(1)[0][0] tb y1 = dat[i] dat[i] y1
n = int(input())
dat = []
for i in range(n):
    a,b = map(int, input().split())
    dat.append([a,b])
dat2 = []
if n == 1:
    print(1)
else:
    for i in range(n):
        x1, y1 = dat[i]
        for j in range(n):
            if i == j:
                continue
            x2, y2 = dat[j]
            dat2.append( (x1-x2, y1-y2) )
    import collections
    c = collections.Counter(dat2)
    #print(c)
    ta, tb = c.most_common(1)[0][0]
    res = 0
    for i in range(n):
        canwarp = False
        x1, y1 = dat[i]
        for j in range(n):
            if i == j:
                continue
            x2, y2 = dat[j]
            if x1-x2 == ta and  y1-y2 == tb:
                canwarp = True
        if canwarp:
            continue
        else:
            res += 1
    print(res)
