import math from collections import Counter def yakubun(a,b): g = math.gcd(a,b) return (a//g,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)