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] tmp = 0 for x, y in XY: if (x1 - x) * (y1 - y2) == (x1 - x2) * (y1 - y): tmp += 1 cnt = max(cnt, tmp) print(cnt)