import itertools N = int(input()) XY = [] for _ in range(N): x, y = map(int, input().split()) XY += [[x, y]] C = 0 for i, j in itertools.combinations(XY, 2): x1, y1 = i x2, y2 = j c = 0 for x, y in XY: if (x2-x1)*(y-y1) == (y2-y1)*(x-x1): c += 1 C = max(C, c) print(C)