from collections import Counter N = int(input()) XY = [list(map(int, input().split())) for _ in range(N)] INF = 10**9 cnt = 0 for i in range(N): a, b = XY[i] K = [] for j in range(N): if i==j: continue c, d = XY[j] if c-a!=0: k = (d-b)/(c-a) K.append(k) else: K.append(INF) c = Counter(K) cnt = max(cnt, max(c.values())+1) print(cnt)