from itertools import combinations N = int(input()) XY = [list(map(int, input().split())) for i in range(N)] cnt = 0 for P, Q in combinations(XY, 2): x1, y1 = P[0], P[1] x2, y2 = Q[0], Q[1] a = (y1 - y2) / (x1 - x2) if x1 - x2 != 0 else 0 b = y1 - a * x1 tmp = 0 for x, y in XY: if y == a * x + b: tmp += 1 cnt = max(cnt, tmp) print(cnt)