import math from collections import Counter def yakubun(a,b): if b == 0: return (1,0) elif a == 0: return (0,1) g = math.gcd(a,b) return (math.copysign(1,b) * (a//g) ,abs(b//g)) ans = 0 N = int(input()) XY = [[int(hoge) for hoge in input().split()] for n in range(N)] for s in range(N-1): sx,sy = XY[s] G = [yakubun(gx-sx,gy-sy) for gx,gy in XY[s+1:]] C = Counter(G) ans = max(ans,1 + max(C.values())) print(ans)