from itertools import combinations n = int(input()) xy = [list(map(int, input().split())) for i in range(n)] ans = 0 for c in combinations(xy, 2): a, b = c x1, y1 = a x2, y2 = b cnt = 0 for x, y in xy: if (x1 - x) * (y1 - y2) == (x1 - x2) * (y1 - y): cnt += 1 ans = max(ans, cnt) print(ans)