def onThe(xy,xy1,xy2): r1 = (xy1[0] - xy[0]) * (xy2[1] - xy[1]) r2 = (xy2[0] - xy[0]) * (xy1[1] - xy[1]) return True if r1 == r2 else False n = int(input()) g = [list(map(int,input().split())) for i in range(n)] l = [2] if len(g) > 2: for i in range(n-1): for j in range(i+1,n): t = 2 for k in range(j+1,n): t += onThe(g[i],g[j],g[k]) l.append(t) print(max(l))