import math
N = int(input())

XY = []

for i in range(N):

    x,y = map(int,input().split())
    XY.append([x,y])

ans = 1

for i in range(N):

    ox,oy = XY[i]
    dic = {}

    for j in range(i):

        nx,ny = XY[j]

        x = ox-nx
        y = oy-ny

        XX = x // math.gcd(x,y)
        YY = y // math.gcd(x,y)

        if XX < 0:
            XX *= -1
            YY *= -1

        if (XX,YY) not in dic:
            dic[(XX,YY)] = 1
        else:
            dic[(XX,YY)] += 1

    for t in dic:
        ans = max(ans,dic[t] + 1)

print (ans)