N = int(input()) ns = [tuple(map(int, input().split())) for _ in range(N)] def is_linear(p1, p2, p3): return ((p1[0] - p3[0]) * (p1[1] - p2[1])) - ((p1[0] - p2[0]) * (p1[1] - p3[1])) == 0 lines = [[ns[0], ns[1]]] for i, p in enumerate(ns[2:]): linear_points = set() current_points = set(ns[:2+i]) for line in lines: if is_linear(*line[:2], p): line.append(p) linear_points |= set(line) lines.extend([[nonlinear, p] for nonlinear in (current_points - linear_points)]) print(max(len(line) for line in lines))